Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
For aesthetic reasons I want to remove the decimal point when I use the function N. For example when put in N[30] I get out 30. when I just want 30 without the decimal point. Is it possible to remove the decimal point when it is not in need?
Round
you get also30
fromRound[N[29.999]]
, $\endgroup$n = 30.; IntegerPart[n]
gives30
and the decimal is gone. Magic. $\endgroup$N
anyway? Why not just write30
? $\endgroup$