Page 1 of 1
Division broken?
Posted: Mon May 13, 2019 5:25 pm
by TestBoy
Consider the following:
All I ever get is 0.
I expect 0.425
Tried Div()
No change. Still 0.
What am I missing? It's SO SIMPLE it's infuriating
Re: Division broken?
Posted: Mon May 13, 2019 9:57 pm
by Lech Kulikowski
Hello,
In your case, you should use:
{ 17m / 40m }
please check the following article:
https://docs.microsoft.com/en-us/dotnet ... ypes-table
Thank you.
Re: Division broken?
Posted: Tue May 14, 2019 3:55 am
by TestBoy
I get it now.
I did not know that it behaved the wave way as .Net did with regards to decimals.
Now I know.
Thanks.
Re: Division broken?
Posted: Tue May 14, 2019 6:59 am
by Lech Kulikowski
Hello
Please let us know if you need any additional help.
Thank you.