Jump to content

Recommended Posts

I'd like to bump up some decimal places, not sure how to do this? Basically want .00, .10, .20, .30, .40, .50, .60 etc and .05, .15, .25, .35, .45 etc.

0.01 to 0.04 = 0.5

0.05 to 0.09 = 0.10

 

19.50 to 19.50 (no change)

19.25 to 19.30

19.26 to 19.30

19.01 to 19.05

19.02 to 19.05

Share this post


Link to post
Share on other sites

Siroos12's  calculation works, but keep in mind that decimal numbers in FileMaker never have trailing zeros. You can format the display of numbers to 2 decimal places in the Inspector, but the actual data will still be only 1 decimal place if it ends with 0 (or none if the result of the calculation should be 6.00). 

Edited by Lee Smith
removed background color caused by pasting text

Share this post


Link to post
Share on other sites
18 hours ago, doughemi said:

Siroos12's  calculation works

Does it?

Share this post


Link to post
Share on other sites

It didn't work for me, I ended up doing this:

Let ( [ Num = TABLE::FIELD / .1 ; Integ = Int ( Num ) ; Frac = Num - Integ ] ; ( Integ + Ceiling ( Frac ) ) * .1 )

Got me close enough

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Who Viewed the Topic

    1 member has viewed this topic:
    dzempel 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.