Yesideez Posted July 15, 2007 Share Posted July 15, 2007 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 More sharing options...
Yesideez Posted July 15, 2007 Author Share Posted July 15, 2007 Using sprintf() to format the output to give decimal places - now the pence is showing instead of only the pounds Link to comment https://forums.phpfreaks.com/topic/60042-solved-floating-point-variables/#findComment-298649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.