This is a question I never thought I would ask in this forum, but how do we divide numbers?
I tried the following:
errmsg("%d", 1/3);
and the result was 0, but I want 0.33333
The manual claims that / is the division operator working on numeric expressions and also that a numeric variable is an integer or decimal number significant to 15 digits, so it should work, shouldn't it?
Anne
Division?
Forum rules
New release: CSPro 8.0
New release: CSPro 8.0
Re: Division?
The division is fine but I think you need %f instead of %d in the errmsg
Re: Division?
(I knew it: How utterly embarrasing.. )
Thanks
Thanks