Only display nums to right of decimal
How can I only display the numbers to the right of the decimal point?
|
Re: Only display nums to right of decimal
PHP Code:
-Make the number to a string and put it in input and set max_len to the length of the number - Set delimiter to '.' It should look similar to this: Code:
ExploadeStr(numbers,9,numbertoseparate,'.')numbers[0] contains the numbers before the decimal numbers[1] contains the numbers after the decimal Then you can just convert the string back to a number if you need to. |
Re: Only display nums to right of decimal
I thought about using a method like that at first, but then a friend figured this method out for me...
PHP Code:
|
| All times are GMT -4. The time now is 16:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.