-
December 21st, 2007, 11:49 AM
#16
Re: Generics for numbers?
Originally Posted by Aurrin
I tried that. Unfortunately, that is quite useless, as it also allows string, int, bool, etc. I needed to pare it down to things that could do floating-point math, so that when I wrote
I think you're stuck with C++ then.
Kevin
-
December 21st, 2007, 02:53 PM
#17
Re: Generics for numbers?
Nah. It's not worth the hassle (at this stage, anyway) to do that. I'll just stick with double for now. Variable-precision would be nice, but it's not required.
-
December 21st, 2007, 07:42 PM
#18
Re: Generics for numbers?
FYI double is faster than float and much, much, MUCH faster than decimal so picking it as your base type is a good decision.
Darwen.
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
|