SMath Studio Forum
»
SMath Studio
»
Questions
»
rounding to the next positve integer
Rank: Newbie
Groups: Registered
Joined: 26/01/2021(UTC) Posts: 1 Location: Berlin
|
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 Edited by user 26 January 2021 13:06:46(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/12/2011(UTC) Posts: 319 Location: italy Was thanked: 109 time(s) in 93 post(s)
|
use the floor () function (for positive numbers) sergio
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Erwin_G 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 (6kb) downloaded 7 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 Was thanked: 510 time(s) in 340 post(s)
|
Originally Posted by: Erwin_G 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 Originally Posted by: PompelmoTell 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
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
rounding to the next positve integer
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.