3 ms·
I've edited my comment for guideline compliance. I don't think it settles anything, but a trivial function that divides two integers and returns the result com
by recursive 6y ago
I've edited my comment for guideline compliance.
I don't think it settles anything, but a trivial function that divides two integers and returns the result compiles to this:
IL_0000: ldarg.1
IL_0001: conv.r8
IL_0002: ldarg.2
IL_0003: conv.r8
IL_0004: div
IL_0005: ret
conv.r8 is an explicit conversion to double precision float in the target language, MSIL.
- MaxBarraclough 6y agoI was already convinced by your earlier tio.run example, but I'm still a bit baffled by the page saying The / operator is defined only for the Decimal, Single, and Double data types.