Forum Discussion
ckurir
4 years agoFrequent Visitor
Int64.From is rounding numbers, not taking just the integer part
I have a problem using Int64.From. I just wants the integer part of a number If I have the number 4.8 it always give me "5", no matter which RoundingMode I use Int64.From(4.8,null,Roundingmode.Down...
- 4 years ago
Hello! Please try this:
Number.RoundDown ( 4.8 )
AlexisOlson
Super User
4 years agoThe rounding mode only determines how to round numbers like 0.5 that need a tie-breaking rule to round up or down.
This is the "why" and jennratten gives a good "work around".