W3C home > Mailing lists > Public > www-xpath-comments@w3.org > October to December 2008

Round value- Error

From: big_show <jorge.miguel.sa@gmail.com>
Date: Wed, 12 Nov 2008 10:00:40 -0800 (PST)
Message-ID: <20465856.post@talk.nabble.com>
To: www-xpath-comments@w3.org

Hi: 
I have one problem in XFORMS. 
I have this bind which is a calculation of a total. 

<xforms:bind id="total"
nodeset="/aval_desemp_gestao_operacional/valor_desempenho" 
calculate="(0.2*instance('aval_desemp_gestao_operacional')/vdo) 
        +(0.25*instance('aval_desemp_gestao_operacional')/vdr) 
        +(0.25*instance('aval_desemp_gestao_operacional')/vde) 
        +(0.3*instance('aval_desemp_gestao_operacional')/vdg)" />

The Field valor_desempenho is a float and I needed to round this calculation
to two decimal places. Is it possible? 
How can I do? 
Thanks!
-- 
View this message in context: http://www.nabble.com/Round-value--Error-tp20465856p20465856.html
Sent from the w3.org - www-xpath-comments mailing list archive at Nabble.com.
Received on Thursday, 13 November 2008 00:15:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 November 2008 00:15:17 GMT