Looks like with this fix calculator now properly outputs number of decimal places :)
But this also introduces small bug - if d_places is 0 and equation result is "0", calculator will crash in cut() trying to slice radix character off an empty string.
Looks like with this fix calculator now properly outputs number of decimal places :)
But this also introduces small bug - if d_places is 0 and equation result is "0", calculator will crash in cut() trying to slice radix character off an empty string.