Page 1 of 1

Replace . from integer

Posted: Thu Mar 15, 2012 9:33 am
by halpavan2
Hello

I want to replace . from integer, how can i do this. I searched in fourm not able to find.

Input file.
1.0
2.0

Output should be
1
2

can anybody please help.

Thanks
Pavan

Posted: Thu Mar 15, 2012 10:46 am
by chulett
Output where? To what datatype? You'll need to format it as a string to remove the natural decimal attributes you are showing now.

Posted: Thu Mar 15, 2012 7:10 pm
by qt_ky
To convert your number/decimal to an integer, as opposed to from an integer, try the AsInteger() function.

Posted: Fri Mar 16, 2012 6:59 am
by chulett
Or that. :wink:

Posted: Fri Mar 16, 2012 3:15 pm
by ray.wurlod
If the data type is string, you can use

Code: Select all

Field(InLink.TheString, ".", 1, 1)