Search the web
Sign In
New User? Sign Up
pendragon-forms · Pendragon Forms
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
setting decimal places   Message List  
Reply | Forward Message #2866 of 2884 |
Re: setting decimal places

thank you

--- In pendragon-forms@yahoogroups.com, Dave Hockman-Wert <dhwert@...> wrote:
>
> 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]
>





Fri Mar 27, 2009 12:13 am

olyfungus
Offline Offline
Send Email Send Email

Forward
Message #2866 of 2884 |
Expand Messages Author Sort by Date

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...
olyfungus
Offline Send Email
Mar 17, 2009
3:08 pm

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...
Dave Hockman-Wert
dhwert
Offline Send Email
Mar 18, 2009
2:45 pm

thank you...
olyfungus
Offline Send Email
Mar 27, 2009
4:38 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help