xsl-list
[Top] [All Lists]

Re: [xsl] Function that reduces the number of digits to the right of the decimal point?

2020-06-25 02:19:47

I've a feeling that, most of the real world requirements involving decimal 
values is rounding of the value (as per function reference above), and not 
truncation. Am I correct, please?


On StackOverflow this question would be instantly closed as one that attracts 
opinions rather than facts. None of us know how to find out how many people in 
the world prefer truncation to rounding (or whether they are right to have that 
preference...). And it really doesn't matter how many people prefer one over 
the other: if your client is subject to accountancy regulations that say how it 
should be done, then that's what you have to do.

In the real world some quite complex rounding requirements arise, for example 
rounding percentages so that they total 100.

Michael Kay
Saxonica
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>