Click here to Skip to main content
15,911,360 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi everyone, i'm writing an arbitrary-sized numeric class.
I know that already written classes exist but i just like doing my own.
When the class will be finished i'd like to write
C#
BigInt n=999999999999999999;

or
C#
BigInt n=new BigInt(999999999999999999);

instead of
C#
BigInt n=new BigInt("999999999999999999");

How to do?
Thanks in advance for your help.
Posted

1 solution

It's not possible, unless you write your own C# compiler
Your only option is the string.
 
Share this answer
 
v2
Comments
Mehdi Gholam 30-Sep-11 1:20am    
My 5!
Simon Bang Terkildsen 30-Sep-11 2:03am    
Thank you, Mehdi :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900