Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
String to DECFLOAT format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
girish.shekki

New User


Joined: 25 Nov 2007
Posts: 3
Location: chennai, india

PostPosted: Mon Feb 14, 2011 2:38 pm    Post subject: String to DECFLOAT format
Reply with quote

Hi,

How can i convert a character string to its equivalent DECFLOAT format? I need to do this in assembler or C. There is example in DB2 Administration guide as shown below

Internal Format : D8F77D00000000000C
DFP Format : 222C000000001E80
String Representation : +7.500


But how this is done is not given. I need to convert string representation to internal format representaion.

Thanks,
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2442
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 14, 2011 3:25 pm    Post subject:
Reply with quote

http://www.rkaiser.de/rkaiser/DecFPClass/DecFPClass.html
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Mon Feb 14, 2011 3:43 pm    Post subject: Reply to: String to DECFLOAT format
Reply with quote

when somebody decide to use the DECFLOAT format
did the same specify properly the requirements and the tools to be used?

for complete info on the subject google for
mike cowlishaw decimal artithmetic
which will take You here
http://speleotrove.com/decimal/
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us