Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

_decodedecimal128(3m) [hpux man page]

_decodedecimal64(3M)													      _decodedecimal64(3M)

NAME
_decodedecimal64(), _decodedecimal128(), _decodedecimal32() - decode decimal-encoded decimal data SYNOPSIS
DESCRIPTION
There are two standard bit-encodings for decimal floating-point data: binary and decimal. Both encoding provide exactly the same data (analogous to big endian and little endian encodings). The HP-UX decimal floating-point types use the binary encoding. The function decodes x, interpreted as a decimal-encoded 64-bit decimal datum, into the encoding for is a version of it takes a argument and returns a result. is a version of it takes a argument and returns a result. These math functions are supported for HP-UX 11i Version 3 September 2008 Update and forward. USAGE
To use any of these functions, compile with the option. Make sure your program defines and then includes Link in the math library by specifying or on the linking command line. For more information, see the at the following site: RETURN VALUE
returns x in the encoding for raises no exceptions. ERRORS
No errors are defined. SEE ALSO
_decodebinary64(3M), _encodebinary64(3M), _encodedecimal64(3M), math(5). STANDARDS CONFORMANCE
These functions are not specified in any standard. HP Integrity Server Only _decodedecimal64(3M)

Check Out this Related Man Page

_decodedecimal64(3M)													      _decodedecimal64(3M)

NAME
_decodedecimal64(), _decodedecimal128(), _decodedecimal32() - decode decimal-encoded decimal data SYNOPSIS
DESCRIPTION
There are two standard bit-encodings for decimal floating-point data: binary and decimal. Both encoding provide exactly the same data (analogous to big endian and little endian encodings). The HP-UX decimal floating-point types use the binary encoding. The function decodes x, interpreted as a decimal-encoded 64-bit decimal datum, into the encoding for is a version of it takes a argument and returns a result. is a version of it takes a argument and returns a result. These math functions are supported for HP-UX 11i Version 3 September 2008 Update and forward. USAGE
To use any of these functions, compile with the option. Make sure your program defines and then includes Link in the math library by specifying or on the linking command line. For more information, see the at the following site: RETURN VALUE
returns x in the encoding for raises no exceptions. ERRORS
No errors are defined. SEE ALSO
_decodebinary64(3M), _encodebinary64(3M), _encodedecimal64(3M), math(5). STANDARDS CONFORMANCE
These functions are not specified in any standard. HP Integrity Server Only _decodedecimal64(3M)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Integer/Float Script Problem

Hi, I have a script which takes a value from a file and performs calculations on it. Trouble is that this value is a float not an integer and it errors at the decimal point! eg. 94.62 I would like to be able to detect the length of the float (in this above case, 5 characters), and simply do a... (2 Replies)
Discussion started by: danhodges99
2 Replies

2. Shell Programming and Scripting

How To Make Decimal Point Fall On The 15th Character On The Screen

If i have a variable which is a decimal number, i.e 34.05 How can you make decimal point fall on the 15th character on the screen? Or any other that you can specify? Can you do it using sed or awk? (3 Replies)
Discussion started by: Vozx
3 Replies

3. Shell Programming and Scripting

what ia :=

hi, In a script i came accross the following satements 1.if ; then 2. result="${DD:="."}$decimal" 3. fi Here in the 2nd line what is the meaning of : before = (DD:=)? any help pls. cheers RRK (2 Replies)
Discussion started by: ravi raj kumar
2 Replies

4. Shell Programming and Scripting

cut

Hi, I need to manipualte the data in the file below so that the value fields on each line are truncated to just two decimal places. Meaning i want to delet everything after two decimal places on each record in the file. I have highlighted the first value field. 02331814579359.6500000004... (3 Replies)
Discussion started by: goshort
3 Replies

5. Shell Programming and Scripting

get the perl version (decimal value comparision)

Hi All, can you pls throw some light for below logic -> Check the perl version -> if the version is greater than or equal to 5.8 -> proceed to next step -> else fail Regards Kamal (2 Replies)
Discussion started by: kamauv234
2 Replies

6. Shell Programming and Scripting

Retain upto 2 decimal point for numeric values

Hi I have a big file with lines like below <tr align="center" bgcolor="SEASHELL"><td>94% </td><td>4.62178 </td><td>73.4375 </td></tr> <tr align="center" bgcolor="SEASHELL"></td><td>97% </td><td>3.2962 </td><td>125 </td></tr> I want to format the file such that i get like below. i.e... (3 Replies)
Discussion started by: ningy
3 Replies

7. Shell Programming and Scripting

Printf question: getting padded zero in decimal plus floating point together.

Hi Experts, Quick question: I am trying to get the output with decimal and floating point but not working: echo "20.03" | awk '{printf "%03d.2f\n" , $0 }' 020.2f How to get the output as : 020.03 Thank you. (4 Replies)
Discussion started by: rveri
4 Replies

8. Programming

Binary to decimal for particular bits

Hello, I have script which work fine on particular data.file . The next feature I want to achieve is to get the decimal equivalent of data to data. The data looks like this : data(01000000000000000000110000000000) thank you.. #include <iostream> #include <fstream> #include... (4 Replies)
Discussion started by: emily
4 Replies

9. UNIX for Advanced & Expert Users

How to determine the encoding of this dd image?

I have extracted a raw data file from a magnetic tape using the dd command Afterwards, I managed to read the extracted data with Bless HexEditor and I found out that at offset 0x200000 there is a sequence of value which originally was stored in a table. I would like to extract this data and... (45 Replies)
Discussion started by: NICEPeppino
45 Replies