04-19-2017
Without any TCL knowledge, I guess that 123456789110000 really seems a bit large for integer representation (in any tool / language / system). If you just want to concatenate the two variables, make them strings. If you need to do math with them, try float representation.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
Could u tell me What is $PROD ? Does it represent some Unix directory?
Regards
Ashish Malviya (2 Replies)
Discussion started by: Ashishm
2 Replies
2. Shell Programming and Scripting
how should represent euro sign "€" in Unix (1 Reply)
Discussion started by: akash
1 Replies
3. Solaris
Hi All,
Can you please advise what the 't' letters stands for?
I understand the letter for the following "c1t1d0s2":
c = disk Controller
t = ?
d = disk number ID.
s = slice or partition of the disk
Thanks (2 Replies)
Discussion started by: tlee
2 Replies
4. Shell Programming and Scripting
Hi all,
In KSH, I have got an error message like,
"expr: Integer argument too large"
I received this error message when I mutiply two large values and displaying the resultant output.
Is there any other altenative way to go with too large values?
Kindly let me know asap...
Thanks in... (12 Replies)
Discussion started by: iamgeethuj
12 Replies
5. Shell Programming and Scripting
Hi,
I need to make a script to edit a file. File is a large file in below format
Version: 2008120101
;$INCLUDE ./abc/xyz/Delhi
;$INCLUDE ./abc/xyz/London
$INCLUDE ./abc/xyz/New York
First line in the file is version number which is in year,month,date and serial number format. Each... (5 Replies)
Discussion started by: makkar4u
5 Replies
6. Emergency UNIX and Linux Support
Hi All,
Can anyone please help me with the regular expression/code snippet to search for an IP address in a string with Tcl scripting.
Example string
"OSPF_NBRUP OSPF neighbor 16.138.181.15 (realm ospf-v2 e1-0/0/0:37.0 area 0.0.0.0) state changed from Full to Down due to KillNbr"
In the... (6 Replies)
Discussion started by: Mr. Zer0
6 Replies
7. UNIX for Dummies Questions & Answers
What does $ represent in command prompt? (2 Replies)
Discussion started by: ashok.g
2 Replies
8. Shell Programming and Scripting
hi,
how to I do this?
i="4.000"
if ; then
echo "smaller"
fi
how do I convert the "4.000" to 4?
Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies
9. Shell Programming and Scripting
Hi All,
sessionid_remote=$(echo "select odb_sessionid from sysopendb where odb_dbname='syscdr';" | sudo -u cucluster ssh ucbu-aricent-vm93 "source /opt/cisco/connection/lib/connection.profile; $INFORMIXDIR/bin/dbaccess sysmaster@ciscounity")
for sid in $sessionid_remote;do
if * ]];... (2 Replies)
Discussion started by: deeptis
2 Replies
10. Shell Programming and Scripting
The username is of the format : 123456789110000-1234@something.com
With this below TCL procedure, I am trying add first and Sec Id and get third Id.
I checked in online compiler and it seems to work and add. However, when I am running this in my lab, I get error as "integer value too large to... (1 Reply)
Discussion started by: Shaibal_bp
1 Replies
NAN(3) BSD Library Functions Manual NAN(3)
NAME
nan, nanf, nanl -- quiet NaNs
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <math.h>
double
nan(const char *s);
float
nanf(const char *s);
long double
nanl(const char *s);
DESCRIPTION
The NAN macro expands to a quiet NaN (Not A Number). Similarly, each of the nan(), nanf(), and nanl() functions generate a quiet NaN value
without raising an invalid exception. The argument s should point to either an empty string or a hexadecimal representation of a non-nega-
tive integer (e.g., "0x1234".) In the latter case, the integer is encoded in some free bits in the representation of the NaN, which some-
times store machine-specific information about why a particular NaN was generated. There are 22 such bits available for float variables, 51
bits for double variables, and at least 51 bits for a long double. If s is improperly formatted or represents an integer that is too large,
then the particular encoding of the quiet NaN that is returned is indeterminate.
COMPATIBILITY
Calling these functions with a non-empty string isn't portable. Another operating system may translate the string into a different NaN
encoding, and furthermore, the meaning of a given NaN encoding varies across machine architectures. If you understood the innards of a par-
ticular platform well enough to know what string to use, then you would have no need for these functions anyway, so don't use them. Use the
NAN macro instead.
SEE ALSO
fenv(3), ieee(3), isnan(3), math(3), strtod(3)
STANDARDS
The nan(), nanf(), and nanl() functions and the NAN macro conform to ISO/IEC 9899:1999 (``ISO C99'').
BSD
December 16, 2007 BSD