rounding to the next positve integer

rounding to the next positve integer - round down to the next smaller positive integer - Messages

#1 Posted: 1/26/2021 6:23:07 AM
Erwin

Erwin

0 likes in 1 posts.

Group: User

Hello All, is there a way to round down to the next smaller positive integer in SMath?

Example: 56.6 --> 56

If yes, how can I do that?

Many thanks and best regards, Erwin
#2 Posted: 1/26/2021 7:15:28 AM
sergio

sergio

115 likes in 329 posts.

Group: User

use the floor () function (for positive numbers)
sergio
#3 Posted: 1/26/2021 9:17:24 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

is there a way to round down to the next smaller positive integer in SMath?


The Smath round(■ ,n) work numerical, often useful to isolate.
If the suite is symbolic, it does not isolate.
Then, isolate or transit spool to file for symbolic suite.
Cheers ... Jean

Maths Round(U,n).sm (5 KiB) downloaded 25 time(s).
#4 Posted: 1/26/2021 12:05:11 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Hello All, is there a way to round down to the next smaller positive integer in SMath?

Example: 56.6 --> 56

If yes, how can I do that?

Many thanks and best regards, Erwin


Wrote

use the floor () function (for positive numbers)
sergio


Sergio is right, floor() is the correct answer.
Other functions won't work for your question.
Don't bother with other answers.

Regards
#5 Posted: 1/26/2021 3:37:22 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Image Damier Quick.sm (15 KiB) downloaded 45 time(s).
  • New Posts New Posts
  • No New Posts No New Posts