See p. 352 in the Users Guide. It describes how to write a script that
truncates a number to a desired number of decimal places. Simply stated, it
involves multiplying the number times 10000, adding 0.5, and then dividing by
10000.
The example below is for truncating to two decimal places.calculate:
if $2 = null then
return
endif
result = $1 / $2
result = result * 100
result = result + 0.5
result = integer result
answer = result / 100
This isn't exactly what you want, but I'm not sure one is able to specify the
number of decimal places in a Number field.
Good luck,
Dave
________________________________
From: olyfungus <olyfungus@...>
To: pendragon-forms@yahoogroups.com
Sent: Monday, March 16, 2009 12:25:31 PM
Subject: [pendragon-forms] setting decimal places
Hello.
I am using Forms 5.1, and would like to set a number field to have 5 decimal
places i.e ##.##### I have yet to find any solutions, or scripts that would
accomplish this parameter (other than currency field options suggested in these
forums for for older versions of the software). Any help would be appreciated.
Eric
[Non-text portions of this message have been removed]