BC Or Xcal


View Poll Results: Bc Or Xcal
Bc 3 60.00%
Xcal 2 40.00%
Voters: 5. This poll is closed

 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers BC Or Xcal
# 1  
Old 06-26-2005
BC Or Xcal

Wich one is better Smilie [COLOR=Cyan]
# 2  
Old 06-30-2005
MySQL

Xcal is the best
# 3  
Old 06-30-2005
how about dc?
# 4  
Old 07-05-2005
I vote for bc (or dc, or what else), because it is standard UNIX, unlike Xcal AND it is easy to script. Here is a rounding function in ksh, try scripting it with xcal instead of bc, here is just the core of it:

Code:
                                                 # calculate rounded value
nValue=$( print "scale=$iDigits; $( print "scale=$iDigit2; $nValue + $nAdd" |\
                                    bc \
                                  ) / 1" | \
          bc \
        )

bakunin
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question