Sudha Rani
Sudha Rani

Reputation: 89

Rounding a number to lowest hundred using XSLT

I am looking for a way to round any number to its lowest hundred. Example if the numeric value is 975, it should display as 900. If the values is 975.55, then also it should display 900. Can someone please tell me how can I achieve this using XSLT ?

Upvotes: 2

Views: 54

Answers (1)

Martin Honnen
Martin Honnen

Reputation: 167401

If you use floor($number div 100) * 100 then you should get what you want.

Upvotes: 3

Related Questions