7.5 * 2 results in 15., with a trailing dot. How can I get rid of it?
1
vote
2
answers
119
views
Using
zsh
:
- width=7.25; echo $(( width * 2 ))
: the output is 14.5
- width=7.5; echo $(( width * 2 ))
: the output is 15.
, with a trailing dot
This seems to be a very basic thing, but I haven't figured it out. How can I get just 15
, without the trailing dot, in the second example?
Asked by jsx97
(1347 rep)
Aug 23, 2024, 07:01 PM
Last activity: Aug 25, 2024, 01:51 PM
Last activity: Aug 25, 2024, 01:51 PM