Skip to content

Fix for "invalid transfers object" error.

Andreas C. Osowski requested to merge cyclux:patch-1 into master

Created by: cyclux

convertUnits() should return an integer. But some amounts return a float (like 2.019 Mi results in 2019000.0000000002) which leads to the "invalid transfers object" error. Here I propose a simple fix for it by forcing an integer value as return.

Merge request reports