Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Erwin_G  
#1 Posted : 26 January 2021 12:23:07(UTC)
Erwin_G

Rank: Newbie

Groups: Registered
Joined: 26/01/2021(UTC)
Posts: 1
Germany
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

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Online PompelmoTell  
#2 Posted : 26 January 2021 13:15:28(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 319
Man
Italy
Location: italy

Was thanked: 109 time(s) in 93 post(s)
use the floor () function (for positive numbers)
sergio
Offline Jean Giraud  
#3 Posted : 26 January 2021 15:17:24(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Erwin_G Go to Quoted Post
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).
Offline overlord  
#4 Posted : 26 January 2021 18:05:11(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,129
Turkey

Was thanked: 510 time(s) in 340 post(s)
Originally Posted by: Erwin_G Go to Quoted Post
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 Go to Quoted Post
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
Offline Jean Giraud  
#5 Posted : 26 January 2021 21:37:22(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Image Damier Quick.sm (16kb) downloaded 20 time(s).
Users browsing this topic
Guest
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.