+ 1

How do you create a code or program that calculates correctly w/decimals?

An experiment

24th Mar 2018, 1:28 AM
Rasha Chow
Rasha Chow - avatar
5 Réponses
+ 2
What language are you using? And could you be more explicit?
24th Mar 2018, 2:27 AM
cyk
cyk - avatar
+ 2
but this code returns the length of string if decimal is absent. however u may use 'if' statement so that it returns value as zero when decimal is absent, to obtain a perfect code.
24th Mar 2018, 3:52 AM
2+2=4
2+2=4 - avatar
+ 1
@2+2=4: Thanks, mate!
24th Mar 2018, 3:44 AM
Rasha Chow
Rasha Chow - avatar
0
I'll remember that
24th Mar 2018, 3:53 AM
Rasha Chow
Rasha Chow - avatar