Talk:Exponentiation operator: Difference between revisions

(my sign added sorry :()
Line 17:
It should be specified also the return type; even for ''int''<sup>''int''</sup> it makes sense to return a real value, since if the exponent is negative, it is what we get mathemtically. Should we return an integer instead? (This means: if the exp is less than 0, the result is 0)
--[[User:ShinTakezou|ShinTakezou]] 01:07, 8 December 2008 (UTC)
 
== AWK ==
 
The awk solution is pretty weak: It does not handle fractional exponents. It looks like there is a log function for awk, so I reckon it is possible to create a fully working solution, but has been many years since I last looked at how to do this, so I need to do some revision on mathematics. I am working on a solution, but if someone already has a working algorithm then please paste it here as pseudocode, and I will try and translate it into awk. [[User:Markhobley|Markhobley]] 11:44, 7 September 2011 (UTC)