Jump to content

[SOLVED] Drop trailing zeros


jester626

Recommended Posts

I have a DB where some fields are of the FLOAT nature. The Data that gets put into these field are 1.000, 1.500.1.250 etc.

 

When I go to display them on  PHP page I want to be able to drop any trailing zeros.

 

Can anyone give me some insight on how to do this?

 

Thanks,

 

Jester

Link to comment
https://forums.phpfreaks.com/topic/75369-solved-drop-trailing-zeros/
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.