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