rounding to the next positve integer

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

#1 Pubblicato: 26/01/2021 06:23:07
Erwin

Erwin

0 apprezzamenti in 1 post.

Gruppo: 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 Pubblicato: 26/01/2021 07:15:28
sergio

sergio

127 apprezzamenti in 342 post.

Gruppo: User

use the floor () function (for positive numbers)
sergio
#3 Pubblicato: 26/01/2021 09:17:24
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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,26 KiB) scaricato 1188 volta(e).
#4 Pubblicato: 26/01/2021 12:05:11
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: 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 Pubblicato: 26/01/2021 15:37:22
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Image Damier Quick.sm (15,15 KiB) scaricato 1235 volta(e).
  • Nuovi post
  • Nessun nuovo post