View previous topic :: View next topic
|
Author |
Message |
muralithirumalaisamy Warnings : 1 New User
Joined: 13 Jun 2005 Posts: 12 Location: chennai
|
|
|
|
Hi,
Can anybody Guide me to solve the below problem
Im working with rexx language this is regarding the same
When im adding 87434358749 + 1 im getting the output as 8.743435E+10 and not as 87434358750
Buit as per my requirement i need the output as 87434358750
Is thre any function in rexx to get that output |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you tried increasing the numeric field length from the default of 9
NUMERIC DIGITS(12) |
|
Back to top |
|
|
muralithirumalaisamy Warnings : 1 New User
Joined: 13 Jun 2005 Posts: 12 Location: chennai
|
|
|
|
Hi,
See in REXX there is no need to declare any field u can straight a way use that
That is the compatibility in ress..
So i Believe this will not help by any means
Thanks
Murali |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
So i Believe this will not help by any means |
You believe wrong !
expat is right
please try this
Code: |
say "default numeric digits"
a = 87434358749 + 1
say " a= " a
say " numeric digits 11 "
numeric digits 11
a = 87434358749 + 1
say " a= " a
say " numeric digits 12 "
numeric digits 12
a = 87434358749 + 1
say " a= " a
|
In REXX You do not declare each field' s characteristics,
with "NUMERIC DIGITS" and "NUMERIC FUZZ" You give to the rexx interpreter a default on how to carry on arithmetics and comparisons
regards
e.s |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you disagree with a suggestion someone has posted
Quote: |
Hi,
See in REXX there is no need to declare any field u can straight a way use that
That is the compatibility in ress..
So i Believe this will not help by any means
Thanks
Murali
|
it is a good to test your response before posting it. . . |
|
Back to top |
|
|
|