View previous topic :: View next topic
|
Author |
Message |
kris_madras Warnings : 1 New User
Joined: 04 Jul 2005 Posts: 31
|
|
|
|
Hi,
I have input feed in the form pic s9(7)v9(2) comp-3.
I need to move this input to output variable X(9).
Also need to remove leading zeroes in the decimal portion.
Please suggest.
Input -1: 1234.00
Output expected : xxx123400 (x is space)
Input -2: 0.58
Output expected : xxxxxxx58 (x is space)
Input -3: 2345.67
Output expected : xxx234567 (x is space)
Input 4-: 0.00
Output expected : xxxxxxxxx (x is space)
Thanks |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi
What have you tried please?
Also what do you expect if your input is less than zero?
Can you also double check if 0.00 is input you need output as spaces? |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2024 Location: USA
|
|
Back to top |
|
|
|