|
Posted by Jack Jackson on 10/20/68 11:19
Hello,
On a site I'm listing measurements in both inches and cm; in the db
they're stored as inches. To convert them to cm I'm doing:
<?php echo ($cartoon['art_width'] * 2.54); ?> x <?php echo
($cartoon['art_height'] * 2.54); ?> cm
How can I limit the result of that math to one decimal place, ie, 9.5
cm, not 9.523 cm?
Thanks in advance,
JJ
Navigation:
[Reply to this message]
|