Jump to content

Please help with GST Script


matlow

Recommended Posts

I am wondering if anyone can help me with a simple GST script. I have the following script which calculates a 10% GST but when I echo the script, it is unformatted. eg If the total amount is $90.00 it shows the GST to be 9 instead of 9.00.



<?php

$gst = ($TValue / 10)

?>



<?php echo $gst ?>

I am very new to all this and any help would be greatly appreciated. Thanks...
Link to comment
https://forums.phpfreaks.com/topic/27562-please-help-with-gst-script/
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.