welcome ,

plz , i want a give the result about this instruction 50^99 in textbox
what the data type can be use to give all number of this result.

the result in textbox : 1.97654296816219E+172
but the cal in a windows 1.97654296816219383545704208846E+172

how can give all number in textbox.

Recommended Answers

All 5 Replies

BigInteger will give you the required precision, but 50^99 isn't 1.97654296816219383545704208846E+172, it is 15777218104420236108234571305655724593464128702180460095405578613281250000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000

or

1.577721810442023610823457130565572459346412870218046009540557861328125E+168


The built in calculator uses it's own types that aren't available in VB.NET

thanx
but the sruct biginteger can not found , how can be add this libary ?

You need to add System.Numerics to your references.

i know , but the struct of numnirec not found ,because the vb2008 dose not have biginteger library .

i get this library but can not add in vb.

The F# 1.x library included a BigInt type, you should still be able to download it from MSDN. But I'd upgrade to vb2010 :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.