diff --git a/BeefLibs/corlib/src/Math.bf b/BeefLibs/corlib/src/Math.bf index c7428d01..2654b0f2 100644 --- a/BeefLibs/corlib/src/Math.bf +++ b/BeefLibs/corlib/src/Math.bf @@ -65,10 +65,11 @@ namespace System } else { - // On X86 this can be inlined to just a few instructions + // On X86 this can be inlined to just a few instructions curValue = Round(curValue); } curValue /= power10; + return curValue; } return value; } @@ -90,10 +91,11 @@ namespace System } else { - // On X86 this can be inlined to just a few instructions + // On X86 this can be inlined to just a few instructions curValue = Round(curValue); } curValue /= power10; + return curValue; } return value; }