Jump to content

[SOLVED] decimal problem


DEVILofDARKNESS

Recommended Posts

How can I make From a random number like 1,0383 => 1?

Examples:

2,00001 => 2

2,9992 => 2

It just always has to become the first whole number under the number itself.

 

My question is how should I program it in php?

I know how you make it a float point?

but then 2,998 will become 3 :-s

Link to comment
https://forums.phpfreaks.com/topic/155087-solved-decimal-problem/
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.