Please enable JavaScript to view this site.

A-Shell Development History

Navigation: Version 4.9/5.0, builds 850-998 > 984 - 02 Apr 07

Truncating of floating point arguments

Scroll Prev Top Next More

When a string value was passed to an XCALL or PROCEDURE/FUNCTION that was expecting a floating point argument, the value was getting truncated to an integer. For example:

print Fn'Test("1.23")

end

 

Function Fn'Test(value as f6)

   Fn'Test = value

End Function

 

The above was incorrectly returning 1 rather than 1.23 due to the truncation during the conversion from string to floating point.