|
-
Feb 4th, 2004, 01:40 PM
#1
Frenzied Member
I see what you mean. I actually thought about that when I wrote that code year or two ago but I decieded to leave the calculation as to be clear about what was going on, and because in this day and age we don't have to worry as much as oh say if this was a 286. The original code was in VB6 and I just pasted into .net a few yers ago as one of my first .net apps and changed the types. To be honest I was never happy with the way that conversion worked because it could overflow and because it was redundant and seemed wastefull but it did do the job and I didn't know about the IFormatProvider or the Math namespace back then.
I seem to remember think something along the lines of if I was going for fast code I wouldn't be using VB anyway.
I used that code in an app that was simpley for lite encryption for posting private messages in public and it never seemed to suffer from being slow. Ha. Infact I wrote for a thread on this foroum called a big project it has something lke 300 posts and is pretty funny. the thread
hellabantarious as hellswraith said
Magiaus
If I helped give me some points.
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
|