Jump to content

Convert double value to long value


felixcriv

Recommended Posts

Hi.

 

I'm newbie with php5........

 

I have this issue with doubles values. When I store a long value like 1234567898999, the data is stored like 123E+10 or something like this.

 

I need retrieve the data like long value, like 1234567898999, but I need store it like double value.

 

Any suggestions?.

Any help would be appreciate. ;D

Link to comment
https://forums.phpfreaks.com/topic/73285-convert-double-value-to-long-value/
Share on other sites

your storing it in 'data' ? do you mean, a variable, or in a MySQL database?

 

if its in MySQL its possible it may insert it in, in scientific notation.

 

But if its in a variable I don't think it will do that.

 

please give us more information and some code if possible.

 

Regards ACE

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.