I believe mod should be defined in the conventional way: x mod y = x - floor(x/y) * y, which does yield 0.8 for 3.2 mod 2.4. However, for 3.2 mod - 2.4 it yields -1.6. To get 0.8 you would have to round toward zero instead of taking the floor, and that complicates any computation that crosses zero.

- Re: Numeric Semantics Larry Wall
- Non-integers as language extensions (was Re... Darren Duncan
- Re: Non-integers as language extension... Dave Whipp
- Re: Non-integers as language exten... Doug McNutt
- Re: Non-integers as language exten... Darren Duncan

- Re: Non-integers as language extensions (wa... Luke Palmer
- Re: Non-integers as language extension... Larry Wall
- Re: Non-integers as language exten... Darren Duncan

- Re: Numeric Semantics TSa
- Re: Numeric Semantics Doug McNutt
- Re: Numeric Semantics Mark J. Reed
- Re: Numeric Semantics Jonathan Lang
- Re: Numeric Semantics TSa
- Re: Numeric Semantics Smylers
- Re: Numeric Semantics TSa
- Re: Numeric Semantics Jonathan Lang
- Re: Numeric Semantics TSa

- Numeric Semantics Jonathan Lang

- Re: Numeric Semantics Dr.Ruud