Skip to Content
0
Former Member
Sep 24, 2008 at 07:07 AM

How to convert char to packed number (type p)

2127 Views

Hello everyone,

I have a problem with data convert from char to packed number.

Ex code:

data: str(10) value '1,200.12'.

data: amount(13) type p decimals 2.

amount = str.

I got an runtime error: "Unable to interpret "1,200.12 " as a number"

Could you please help me to convert char to number?

Many thanks!