[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Rounding to the nearest .25?

Subject: RE: Rounding to the nearest .25?
From: "Zaleski, Matthew \(M.E.\)" <mzaleski@xxxxxxxx>
Date: Wed, 23 Aug 2006 13:13:42 -0400
round to the nearest .25
<xsl:value-of select="round($original_value*4) div 4"/>

would be my guess.

--Matt

> -----Original Message-----
> From: Steve [mailto:subsume@xxxxxxxxx]
> Sent: Wednesday, August 23, 2006 12:57 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.