Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: MySQL Manual | A.5.7 Problems with Floating-Point Comparison. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

MySQL Manual | A.5.7 Problems with Floating-Point Comparison
by Lost at 6:28 am EDT, Aug 27, 2006

A.5.7 Problems with Floating-Point Comparison

floating-point numbers cause confusion sometimes, because these numbers are not stored as exact values inside computer architecture. What one can see on the screen usually is not the exact value of the number.

Field types FLOAT, DOUBLE and DECIMAL are such.

You cannot just match a float variable from a perl DBI call to a FLOAT value from a field in MySQL. Matching will be totally inconsistent. This link explains how you actually do it.


 
 
Powered By Industrial Memetics