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: 2446
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: 10457
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 Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
No new posts Unloading DB2 table in CSV format alo... grvtomar COBOL Programming 7 Sun Jan 28, 2018 2:05 am
No new posts Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts Format Last Record differently from r... Learncoholic DFSORT/ICETOOL 5 Tue Oct 24, 2017 12:01 pm

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