vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hey all, I'm writing a UDF, and I'm having a little problem with returning floating point numbers. My UDF always returns the double precision value 41.2. I create my stored function from my DLL with "CREATE FUNCTION MyFloat RETURNS REAL SONAME 'MyFloat.dll'", and do a SELECT MyFloat() But MySQL Query Browser shows the result as "41". If I query: SELECT MyFloat()*1.0 I get the expected result, 41.2. Why is MySQL rounding off my Real value? Cheers, Nicholas Sherlock -- http://www.sherlocksoftware.org |