writeln double precision
Arun Chandrasekaran
aruncxy at gmail.com
Tue Oct 24 10:02:11 UTC 2017
On Monday, 23 October 2017 at 18:08:43 UTC, Ali Çehreli wrote:
> On 10/23/2017 07:22 AM, Arun Chandrasekaran wrote:
> > [...]
> The rule is that every expression has a type and 22/7 is int.
Thanks Ali. Is this for backward compatibility with C? Because,
if there is a division, a natural/mathematical (not programmatic)
expectation is to see a a double in the result.
Arun
More information about the Digitalmars-d-learn
mailing list