The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Passing global variable to a function which is called by another function sars Shell Programming and Scripting 4 06-30-2008 12:39 PM
Help with the function awk Morgwen Shell Programming and Scripting 5 01-18-2007 05:18 AM
Function within function (Recurance) chassis UNIX for Dummies Questions & Answers 2 09-19-2006 10:32 AM
function rkkiran UNIX for Dummies Questions & Answers 3 01-22-2002 03:07 AM
How to convert the "select" function into a "poll" function rbolante High Level Programming 1 07-10-2001 11:49 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-18-2008
arghya_owen arghya_owen is offline
Registered User
  
 

Join Date: May 2008
Posts: 31
decimal_round_up function

what is function of decimal_round_up function...can anybody explain with example-----
  #2 (permalink)  
Old 09-18-2008
arghya_owen arghya_owen is offline
Registered User
  
 

Join Date: May 2008
Posts: 31
what is function of floor & ceil function...can anybody explain with example-----
  #3 (permalink)  
Old 09-18-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
The shell doesn't have decimal arithmetic, but you can use bc or awk or Perl.


Code:
perl -le 'print int(shift()+0.9999)' 31.45

  #4 (permalink)  
Old 09-18-2008
arghya_owen arghya_owen is offline
Registered User
  
 

Join Date: May 2008
Posts: 31
there are function called decimal_round_up ,floor & ceil....what are these?
  #5 (permalink)  
Old 09-18-2008
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,789
Part of the math library - C language.
Closed Thread

Bookmarks

Tags
perl, perl shift, shift, shift perl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0