Question: round with units

There seems to be a bug in the round function when using units.

a := 6.25*Unit('mm')``

6.25*Units:-Unit(mm)

(1)

round(a)

6*Units:-Unit(mm)

(2)

b := 1.25

1.25

(3)

round(b)

1

(4)

c := 1.25*Unit('mm')

1.25*Units:-Unit(mm)

(5)

round(c)

Units:-Unit(mm)

(6)

NULL

Download round.mw

Please Wait...