Thread
:
How to code?
View Single Post
#
868
(
permalink
)
05-04-2008, 10:40 AM
Michel
Senior Member
Join Date: Feb 2006
Posts: 558
Quote:
Originally Posted by
flourishing
how to make comment(1 / 2) display 0.5 ?
thank you.
Please, try this:
PHP Code:
Comment
(
DoubleToStr
(
1
/
2
,
1
));
The second argument of the function DoubleToStr() is the number of digits after the decimal point.
Michel
View Public Profile
Send a private message to Michel
Find all posts by Michel