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
Dear fellow inmates Please help me with a task that kept me from doing real productive work all afternoon: I am converting from square metres (Switzerland) to square feet (UK) like so: [code] <?php $sqm = '230'; echo "$sqm m² / "; print round($sqm * 10.764); echo " sq ft";?> [/code] Basically the code is working fine but once I use larger square metre figures, like so: 3000 m² / 32292 sq ft ...the notation is missing. Now how do I get the square metres to be Swiss notation and the sq ft to be UK notation like so? 3'000 m² / 32,292 sq ft Help will be much appreciated! :)
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