So why double to float conversion is implicit ?
Fool
fool at dlang.org
Tue Oct 24 16:28:03 UTC 2017
On Tuesday, 24 October 2017 at 14:28:20 UTC, Basile B. wrote:
> float f0 = cos(2 * PI / 1.123548789545545646452154L);
> float f1 = cos(cast(float)(2 * PI /
> 1.123548789545545646452154L));
>
> [...]
>
> but paradoxically the first is more accurate.
There is no paradox. That's comparing apples with oranges. No
offense.
@all: It is sad to see how parts of the community are losing
their distance to the project and even put a gloss on completely
absurd design decisions.
More information about the Digitalmars-d
mailing list