[FIX] Negative numbers cause infinite calculation in Convert functionality

https://ripplelabs.atlassian.net/browse/RT-2285

https://www.bountysource.com/issues/4478046-negative-numbers-cause-infinite-calculation-in-convert-functionality