Jump to content

Money


tyler

Recommended Posts

So, for some reason when someone puts in .2 for 2 cents, it thinks its 20 cents.

 

mysql> select FORMAT(.4,2) from types where username=\'12345\';

+--------------+

| FORMAT(.4,2) |

+--------------+

| 0.40 |

 

The field is set for decimal. I\'m out of ideas.

 

This doesn\'t help me when it comes to money.

 

Tyler

Link to comment
https://forums.phpfreaks.com/topic/1128-money/
Share on other sites

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.