Sponsored Content
Full Discussion: how can i store it ?
Top Forums Programming how can i store it ? Post 11514 by rwb1959 on Thursday 6th of December 2001 04:00:39 PM
Old 12-06-2001
Take a look at the IEEE double precision
representation...

http://www.math.grin.edu/~stone/cour...EEE-reals.html

The greatest number that has an exact IEEE single-precision representation is
340282346638528859811704183484516925440.0 (2^128 - 2^104)

The greatest real number that can be represented
exactly as a double-precision real
is 2^1024 - 2^971, and
the least positive real that can be so
represented is 2^-1074
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to store username

I would like to write files to a directory (not under the user's home) which includes the userid. Example: userid = john John's home dir is /home/john I want to create a directory /var/prog/john MSG_HOME=/var/prog; export MSG_HOME; USR_NAME=@@@@; export USER_NAME; if ; ... (3 Replies)
Discussion started by: dinplant
3 Replies

2. Shell Programming and Scripting

grep and store

When i grep a file and store it in a file it is storing as a zero byte file any way to avoid that..... (6 Replies)
Discussion started by: arunkumar_mca
6 Replies

3. Shell Programming and Scripting

Cannot store integer value

Hi , I have code like below in my ksh script, but getting an error as SP2-0253: data item 1 ("SAMPLE_ID") will not fit on line , pls help me. thanks. if (( CHECKS == 0 )) || (( CHECKS == 1 )) then V_SAMPLE_ID=$( $ORACLE_HOME/bin/sqlplus -S / <<EOF whenever sqlerror exit 1... (5 Replies)
Discussion started by: bennichan
5 Replies

4. Shell Programming and Scripting

store key value

Hi All, I have a string like echo $var D_PROC=20080723 I_REPROC=N C_TYPE_FILE=INBOUND Now I want it be stored in an associative array so that when we echo $arr it should be 20080723 (5 Replies)
Discussion started by: thana
5 Replies

5. Programming

Read and Store

How can I read from the user input and store each word individually for example word1 word2 number1 number2 word 3 number3 server 192.25.1.1 55555 22 logged 15 I need to store and manipulate each word/number individually and these inputs are entered by the user. (7 Replies)
Discussion started by: Peevish
7 Replies

6. UNIX for Dummies Questions & Answers

How to grep and store in a file

Guys, I was wondering what command can be used to parse the "LaxOrdID" field into a separate file? These messages are in thousands and I need to perform a comparision. (6 Replies)
Discussion started by: DallasT
6 Replies

7. Shell Programming and Scripting

How to store value from a function and use it?

There is one function to calculate previous day value and then touch one file with that date.The problem is i am getting the previous day value but not able to store it in other variable and use it. PREVIOUS_DATE_FUNCTION() { date '+%m %d %Y' | { read MONTH DAY YEAR DAY=`expr "$DAY" -... (7 Replies)
Discussion started by: aroragaurav.84
7 Replies

8. Shell Programming and Scripting

I can't store value in the variable

!#bin/bash clear var= grep @gmail.com email.txt | wc -l echo $var echo $var exit 0 OUTPUT: 1000 _ _ Where _ represent space (no value or nothing) (4 Replies)
Discussion started by: Muhammad Rehan
4 Replies

9. UNIX for Beginners Questions & Answers

Where to store backup?

I am on Ubuntu 18.04 and I have never created a backup. Recently my computer started acting sluggish until I restarted it but it got me concerned. So I figured I better make a backup (work pc) just in case. However, I have honestly never made one before. It's asking me where I want to save the... (6 Replies)
Discussion started by: Circuits
6 Replies
exp(3m) 																   exp(3m)

Name
       exp, expm1, log, log10, log1p, pow - exponential, logarithm, power

Syntax
       #include <math.h>

       double exp(x)
       double x;

       float fexp(x)
       float x;

       double expm1(x)
       double x;

       float fexpm1(x)
       float x;

       double log(x)
       double x;

       float flog(x)
       float x;

       double log10(x)
       double x;

       float flog10(x)
       float x;

       double log1p(x)
       double x;

       float flog1p(x)
       float x;

       double pow(x,y)
       double x,y;

Description
       The and functions return the exponential function of x for double and float data types, respectively.

       The and functions return exp(x-1 accurately, including tiny x for double and float data types, respectively.

       The and functions return the natural logarithm of x for double and float data types, respectively.

       The and functions return the logarithm of x to base 10 for double and float data types, respectively.

       The and functions return log(1+x) accurately, including tiny x for double and float data types, respectively.

       The function returns x**y.

   Error (due to roundoff)
       The and functions are accurate to within an ulp, and is accurate to within approximately 2 ulps; an ulp is one Unit in the Last Place.

       The  function  is accurate to within 2 ulps when its magnitude is moderate, but becomes less accurate as the result approaches the overflow
       or underflow thresholds.  Theoretically, as these thresholds are approached, almost as many bits could be lost from the result as are indi-
       cated  in  the exponent field of the floating-point format for the resultant number.  In other words, up to 11 bits for an IEEE 754 double-
       precision floating-point number.  However, testing has never verified loss of precision as drastic as 11 bits.  The worst cases have  shown
       accuracy  of  results  to within 300 ulps for IEEE 754 double-precision floating-point numbers.	In general, a (integer, integer) result is
       exact until it is larger than 2**53 (for IEEE 754 double-precision floating-point).

Return Values
       All of the double precision functions return NaN if x or y is NaN.

       The function returns HUGE_VAL when the correct value would overflow, and zero when the correct value would underflow.

       The and functions return NaN when x is less than or equal to zero or when the correct value would overflow.

       The function returns NaN if x or y is NaN.  When both x and y are zero, 1.0 is returned.  When x is negative and y is not an  integer,  NaN
       is returned.  If x is zero and y is negative, -HUGE_VAL is returned.

       The function returns NaN when x is negative.

See Also
       math(3m)

								       RISC								   exp(3m)
All times are GMT -4. The time now is 10:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy