How do I Read a decimal number from a XML File

Get help using Construct 2

Post » Thu Jul 30, 2015 12:48 am

With the XML template in Construct2, I try to display the price of the book. When I use XML.NumberValue, I lost the decimal part of the number.
I know I can use the XML.StringValue but I think it's a nonsense.

Image
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Thu Jul 30, 2015 1:41 am

The plugin reads the text and converts it to an integer. You'll have to do the conversion yourself.
ImageImageImage
B
71
S
21
G
232
Posts: 3,695
Reputation: 129,866


Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk and 62 guests