Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 2433
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: 10256
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 Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us