xsl-list
[Top] [All Lists]

Re: [xsl] Rounding to the nearest .25?

2006-08-23 10:16:09
more a question for [algebra]. Thanks guys.

On 8/23/06, Zaleski, Matthew (M.E.) <mzaleski(_at_)ford(_dot_)com> wrote:
<xsl:value-of select="round($original_value*4) div 4"/>

would be my guess.

--Matt

> -----Original Message-----
> From: Steve [mailto:subsume(_at_)gmail(_dot_)com]
> Sent: Wednesday, August 23, 2006 12:57 PM
> To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
> Subject: [xsl] Rounding to the nearest .25?
>
> Given a set of numbers like 58.12308, 9.848, 38.97131, how
> can I get these things to be 58, 9.75, and 39, respectively?
>
> -Steve
>


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>