why does this return a negative vlaued number?

  • Thread starter Thread starter Jens Jensen
  • Start date Start date
HI D and thank you for your comprehensive answer.

So why do i get +2500 for
System.Math.IEEERemainder(12500, 5000);



maybe i need to read about the rounding convention.



12500/5000 --->2,5

2,5 should round up to 3 (if i do understand the rouning up convention)



meaning 12500 -(5000* 3) = -2500?

the result is 2500 instead of the expected -2500 according to rounding up
convention.

Thanks

JJ
 
Ok, great
Does anyone know any practical use of such a function?

Many thanks for clearing up the doc for me.
JJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top