Normal Topic Number rounding. (Read 14870 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Number rounding.
Jul 23rd, 2020 at 5:07pm
Print Post Print Post  
When I set an element to two decimal places, the number is "rounded up".  So 1.255 is displayed as 1.26.  Is there a way to truncate or round down the number?  So, 1.255 would be displayed as 1.25.

Thanks for your help!

Paul
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Number rounding.
Reply #1 - Jul 24th, 2020 at 2:36pm
Print Post Print Post  
Hi Paul,

You can use @Decimals() in programming to truncate the number or @DefinedRound() to round down.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged