Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

not an integer: '0.00'

friendlycoder
Participant
0 Kudos

Hi all,

I am using transformations for XML to serialize and deserialize a XML file.Here a snippet from the definition:

<tt:group>
<tt:cond frq="?">
<cac:Price>
<tt:cond check="not-initial($INVL.PRICE.PRICE_AMOUNT) and ($INVL.PRICE.PRICE_AMOUNT > 0.00)">
<cbc:PriceAmount>
<tt:attribute name="currencyID" value-ref="$INVL.PRICE.PRICE_CURRENCY"/>
<tt:value ref="$INVL.PRICE.PRICE_AMOUNT"/>
</cbc:PriceAmount>
</tt:cond>
</cac:Price>
</tt:cond>
</tt:group>

Unfortunately, it does not compile because of
($INVL.PRICE.PRICE_AMOUNT > 0.00)

the compiler complains
not an integer: '0.00'

the data type from PRICE_AMOUNT is CURR 23 2
What am I doing wrong?
Best regards
1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

Packed constants must be wrapped within P(...):

<tt:cond check="SOMETHING > P(0.00)">
3 REPLIES 3

Sandra_Rossi
Active Contributor

Packed constants must be wrapped within P(...):

<tt:cond check="SOMETHING > P(0.00)">

0 Kudos

I tried

<tt:cond check="$INVL.PRICE.PRICE_AMOUNT > P(0.00)">

Unfortunately, I have got XT: "Check failed in condition".

0 Kudos

My answer corresponds to the question you had.

I can't help on runtime issues without context.