Yes. "cut" is probably the only option for you when you don't have "bc" or
"gawk" available.

 

/Christian

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Conway
Sent: den 15 juli 2007 01:55
To: [email protected]
Subject: Re: [Owfs-developers] floating point to integer

 

I am a script dummy however this is what I use.  Just uses cut command to
get rid of everything after the decimal point

 

temp_integer=`echo $temp_float |cut -f1 -d'.'`

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to