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?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this community
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$