Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

awk math

Status
Not open for further replies.

Mag0007

MIS
Joined
Feb 15, 2005
Messages
829
Location
US
Hi:

I am trying to do some intensive numeric calculations with awk.

What are awk's limits? I am trying to a summation of a VERY large number, such as 4096^5 for starters...

any advice? is it possible to pipe to 'bc' with awk?
 
Hi

Never read about such detail. You can use [tt]bc[/tt], of course :
Code:
BEGIN {
  "echo " number "^" power | bc" | getline result
  print result
}

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top