Round() function for integer

Round() function for integer

leesonghyunJNSUP
Participant Participant
908 Views
5 Replies
Message 1 of 6

Round() function for integer

leesonghyunJNSUP
Participant
Participant

Simply, I want to make the result 260mm rounding up at first number of integer.

So, I made below

 

round(258*2,-1)/2

 

but, the "-1" is not working what it works like in Excel function.

 

Please, help me to figure it out.

0 Likes
Accepted solutions (1)
909 Views
5 Replies
Replies (5)
Message 2 of 6

leesonghyunJNSUP
Participant
Participant

I want to make result that the first number of integer 5 units.

0 Likes
Message 3 of 6

m.krom
Contributor
Contributor

Please try this;

 

round(( ( your value ) * 5 mm ) / 5 mm)

 

 

round(( ( ( 258 mm * 2 ul ) ) * 5 mm ) / 5 mm)

 

 

Make sure all units are setup correctly.

 

 

0 Likes
Message 4 of 6

JelteDeJong
Mentor
Mentor
Accepted solution

For rounding up to the next highest whole number use "Ceil()".

In his case you would get:

ceil(<your value/parameter> / 5 mm ) * 5 mm

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 5 of 6

m.krom
Contributor
Contributor

I know about the Ceil, Floor and Round functions. But thanks for your feedback. Greatly appriciated.

0 Likes
Message 6 of 6

leesonghyunJNSUP
Participant
Participant

Thank you very much. you are the one of my savior!

0 Likes