Say I wanted to round a real number to a natural number, how could I do this in VDM++? The MATH library does not appear to have any function that does this.
Thanks, Ricardo
Say I wanted to round a real number to a natural number, how could I do this in VDM++? The MATH library does not appear to have any function that does this.
Thanks, Ricardo
There is a "floor" operator in VDM. This returns the largest integer that is less than or equal to its argument.