Thread: 0.0
View Single Post
  #1  
Old 05-31-2009, 07:39 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Stefan View Post
Hmmm problem of the C++ atod function, will check if we can replace it with strtod. 0.0 + 1 should still give 1 though.
Well I simply did a requestsql("SELECT etc", true); and echoed the result of each row +1 (for the column that had the real numbers). Rows with 1 in them returned 2 while rows with 0 in them returned just 0. Also, when I didn't have the +1, they returned 1.0 and 0.0 respectively.
__________________
Do it with a DON!
Reply With Quote