2021年3月3日星期三

Distinguish whole numbers and decimals

I want to know if there is any way to differentiate a whole number from any other output only using maths, eg if you have the number 5 I would like to convert that into the number 0 using equations, however, the number 5.4342 would output the number -1

(What i am trying to do is very hard to put into words so i can clear up any questions)

https://stackoverflow.com/questions/66467625/distinguish-whole-numbers-and-decimals March 04, 2021 at 10:16AM

没有评论:

发表评论