|
-
Nov 19th, 2011, 11:53 AM
#1
Thread Starter
Hyperactive Member
Creating User-Defined Types.
Well I had a thread going that branched out to this topic, so rather completely veering off the main topic there, I felt creating a new thread was adequate.
So as the title says, I'm trying to create a user-defined type. It's not a simple type at that but a user here had showed me a way to fix all my problems. That was to create a type BigDecimal. Which my initial thought was to utilize the BigInteger type. Being that the Integer Part, and Fractional parts would be split off into two variables, both BigIntegers. Which would be combined at the end as a "decimal". However I have many many questions see that this is my first attempt at truly creating a type of my own. So as of right now I'm basically swinging in the dark here.
My first concert was assigning the variable. For example if I had...
vbnet Code:
Dim BigDec As BigDecimal = 1000285.00001883
I'm not at all sure of how to accomplish this. I feel it must be in a string format first, split by the decimal point, then split of both sides accordingly..
But truly I'm pretty confused here. Any information or pointers to creating user-defined types of this stature would be extremely helpful.
I also have googled up some information on User-Defined types, but nothing has been what I'm looking for. I did learn a lot however just everything I could find out there wasn't "advanced" but more or less the basic stuff that I could've done myself.
Last edited by DavesChillaxin; Nov 19th, 2011 at 12:01 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|