I am encountering an issue with my program where it is not displaying two decimal points properly. For example, when I enter 140.00
, it shows as 140.0
. Strangely, if I enter 140.15
, it displays correctly as 140.15
. It seems to consistently drop the zero. Below is the code snippet that I suspect needs modification. Any assistance in resolving this would be greatly appreciated.
<cfinput type="Text" name="HourlyRate"
value="0.00"
required="Yes"
validate="float"
message="A Default Hourly Rate is required...."
class="inputText200" size="8">**
Alternatively, here is another code snippet:
<input type="text" name="Rate"
<cfif #getHourlyForm.Rate# neq ""> value="#getHourlyForm.Rate#"</cfif> />