View previous topic :: View next topic
|
Author |
Message |
rgupta71
Active User
Joined: 21 Jun 2009 Posts: 160 Location: Indore
|
|
|
|
Hi, All
I want to convet 2.1 to 3 & -2.1 to -2 using a function.
Do we have nay function in COBOL for this.
ROUND cannot be used in this case.
Thanks in Advance |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
since you have no mathematical relationships
the positive number is INTEGER-PART + 1
and the negative number is INTEGER-PART |
|
Back to top |
|
|
rgupta71
Active User
Joined: 21 Jun 2009 Posts: 160 Location: Indore
|
|
|
|
I got the solution |
|
Back to top |
|
|
|