Getting the number of decimal places: Difference between revisions
Getting the number of decimal places (view source)
Revision as of 03:53, 14 August 2020
, 3 years ago→{{header|Phix}}: minor tidy
m (→{{header|Phix}}: minor tidy) |
|||
Line 145:
end if
integer dot = find('.',t)
nd =
end if
elsif string(o) then
s = o
nd = length(s)-find('.',s)▼
else
crash("unknown type")
▲ nd = length(s)-find('.',s)
end if
s = shorten(s,ml:=5)
|