IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

String to DECFLOAT format


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 2481
Location: Netherlands, Amstelveen

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

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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Feb 14, 2011 3:43 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top