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! Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.