Is this normal or a bug ?

Paul Backus snarwin at gmail.com
Mon Jul 3 14:35:44 UTC 2023


On Monday, 3 July 2023 at 14:22:27 UTC, Dom DiSc wrote:
> In C literals are always float unless you mark them as double 
> (10.1L).
> In D 10.1 is a double literal, which is auto-convered to float 
> as parameter to your test.

Floating-point literals without a suffix are doubles in both C 
and D.

http://port70.net/~nsz/c/c99/n1256.html#6.4.4.2p4


More information about the Digitalmars-d mailing list