tags:

views:

225

answers:

1

I was using the Pow function of the BigInteger class in F# when my compiler told me :

This construct is deprecated. This member has been removed to ensure that this type is binary compatible with the .NET 4.0 type System.Numerics.BigInteger

Fair enough I guess, but I didn't found a replacement immediately.

Is there one? Should we only use our own Pow functions? And (how) will it be replaced in NET4.0?

+8  A: 

You can use the pown function

let result = pown 42I 42

pown works on any type that 'understands' multiplication and 'one'.

cfern
It stills doesn't work in pow(bigint,bigint) situations or in pow(sometype,bigint) in general I see, but given the impact of the power that would not be an big issue I think
Peter
+1 for totally pwning those numbers ;)
RCIX