Detailed Descriptions > MIAMEX

MIAMEX 127: Get/set rounding factor

xcall MIAMEX, MX_ROUND, opcode, factor

This function allows you to get (opcode = 0) or set (opcode = 1) the new variable rounding factor. Basically the factor is set to the level of precision you would like. 1 means round all variables to the nearest integer. .01 would be to the nearest one hundredth. 0 disables the feature. Note that the setting persists across programs. For an in-depth discussion of the floating point rounding issue, see the topic entitled Rounding of Floating Point Variables in the A-Shell Development Guide.

History

2004 April, Build 878

Routine added to A-Shell.