OZONE Asylum
Forums
Server-Side Scripting - Oh my!
php calculation & notation question
This page's ID:
31479
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Thank you twItch^! I figured it out: [code]<?php $sqm = '6666'; echo number_format($sqm, 0, ',', '\'') . " m² / " . number_format(($sqm * 10.764), 0, ',', '\,') . " sq ft"; ?>[/code] Output is: 6'666 m² / 71,753 sq ft Perfect! I do wonder however if there isn't a better way of doing it: I have to repeat the above code twice for every property (plot and living space). This gives me about 10 instances of the same code on the same page. There must be a better way... :confused:
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail