Hi,

I don't know of any standard Excel function.
I think you'll either have to write your own UDF in the Visual Basic Environment, or create a table of numbers on the sheet.