Jump to content

[SOLVED] Floating point variables


Yesideez

Recommended Posts

I've got a maths equation in my script to basically work out the cost of VAT on the total of the goods and to also show the grand total. Even when the VAT rate is set to 17.5 I still get integer values returned.

 

I've never used floats before so I've no idea what to do!

Link to comment
https://forums.phpfreaks.com/topic/60042-solved-floating-point-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.