How to remove or strip a decimal point and figure after decimal point in xsl template?

I need to know how I can remove or strip a decimal point and figure after decimal point in xsl template?

See xsl value below:

<xsl:value-of select="qty/order">

and the output example is

"1.000"

I need to just get "1"
DavidO84Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Geert BormansConnect With a Mentor Information ArchitectCommented:
nicer is to treat is as a number
<xsl:value-of select="floor(qty/order)">
the difference is in the negative numbers
if the number would be "-7.9"
first solution will return "-7"
second solution will returen "-8"
0
 
Geert BormansInformation ArchitectCommented:
<xsl:value-of select="substring-before(qty/order, '.')">
0
 
DavidO84Author Commented:
Worked perfectly and very easy to understand thanks.
0
All Courses

From novice to tech pro — start learning today.