function, so you should be able to just use that as a replacement. You'll
need to pass it one argument, though, rather than two. Is the "2" in that
function call attempting to do something?
-Clayton
···
On Tue, Jan 15, 2013 at 10:14 AM, William Aviles Monterrey < wravmon@gmail.com> wrote:
**
Hi all,
I wonder if anyone is using the round function in commcare.
function, so you should be able to just use that as a replacement. You'll
need to pass it one argument, though, rather than two. Is the "2" in that
function call attempting to do something?
-Clayton
On Tue, Jan 15, 2013 at 10:14 AM, William Aviles Monterrey < wravmon@gmail.com> wrote:
**
Hi all,
I wonder if anyone is using the round function in commcare.
···
On Jan 15, 9:58 am, Drew Roos wrote:
> i assume it means 'round to 2 decimal places'.
>
> you could do this with int(100*/data/value + .5)/100
>
>
>
>
>
>
>
> On Tue, Jan 15, 2013 at 10:55 AM, Clayton Sims wrote:
> > William,
>
> > I'm not sure that we currently implement the round() function
> >https://confluence.dimagi.com/display/commcarepublic/List+of+xpath+fu...in use it is identical to the
>
> > int()
>
> > function, so you should be able to just use that as a replacement. You'll
> > need to pass it one argument, though, rather than two. Is the "2" in that
> > function call attempting to do something?
>
> > -Clayton
>
> > On Tue, Jan 15, 2013 at 10:14 AM, William Aviles Monterrey < wrav...@gmail.com> wrote:
>
> >> **
> >> Hi all,
>
> >> I wonder if anyone is using the round function in commcare.
>
> >> I am trying this
>
> >> >> required="true()" />
> >> >> "round(/data/talla,2)" />
>
> >> I am getting this:
>
> >> internal error handling request: >> 'org.javarosa.xpath.XPathUnhandledException'>:
> >> org.javarosa.xpath.XPathUnhandledException: XPath evaluation: cannot handle
> >> function 'round'
>
> >> In both, cloudcare and commcare ODK,
>
> >> Any ideas?
>
> >> Thanks in advance,
>
> >> William
function, so you should be able to just use that as a replacement.
You'll
need to pass it one argument, though, rather than two. Is the "2" in
that
function call attempting to do something?
-Clayton
On Tue, Jan 15, 2013 at 10:14 AM, William Aviles Monterrey < wrav...@gmail.com> wrote:
**
Hi all,
I wonder if anyone is using the round function in commcare.
I am trying this
<bind nodeset="/data/talla" type="xsd:double"
constraint=".>=
60 and .<= 200" jr:constraintMsg="jr:itext('talla-constraintMsg')"
required="true()" />
function, so you should be able to just use that as a replacement. You'll
need to pass it one argument, though, rather than two. Is the "2" in that
function call attempting to do something?
-Clayton
On Tue, Jan 15, 2013 at 10:14 AM, William Aviles Monterrey < wrav...@gmail.com> wrote:
**
Hi all,
I wonder if anyone is using the round function in commcare.