# Search:

Type: Posts; User: DEXWERX

1. ## Thread: [RESOLVED] How to fast split Number integet part and decimal part ?

by DEXWERX
Replies
51
Views
1,910

### Re: How to fast split Number integet part and decimal part ?

Nope Sorry... we have to go through all possible ways of doing things the wrong way first.

:afrog:

Now that would be impressive! Make sure you check out Krool's simple multithreading...
2. ## Thread: [RESOLVED] How to fast split Number integet part and decimal part ?

by DEXWERX
Replies
51
Views
1,910

### Re: How to fast split Number integet part and decimal part ?

If the whole point is to convert a number to a string faster than CStr() I believe Olaf posted a faster CStr()

But honestly - none of what you're doing makes any sense. What's the purpose of...
3. ## Thread: [RESOLVED] How to fast split Number integet part and decimal part ?

by DEXWERX
Replies
51
Views
1,910

### Re: How to fast split Number integet part and decimal part ?

Elroy offered a solution to calculate decimal part, that's faster than Cstr()?

You're making a mountain out of a mole hill.
4. ## Thread: [RESOLVED] How to fast split Number integet part and decimal part ?

by DEXWERX
Replies
51
Views
1,910

### Re: How to fast split Number integet part and decimal part ?

in engineering, you always do. In engineering only so many decimals matter...

If you need accuracy beyond what a Double can do - you have to sacrifice speed. Decimal is also a binary format, and...
5. ## Thread: [RESOLVED] How to fast split Number integet part and decimal part ?

by DEXWERX
Replies
51
Views
1,910

### Re: How to fast split Number integet part and decimal part ?

@quickbbb

I see, you're using the Decimal Format so you can get rid of the perceived inaccuracies of the Double format.
Why those inaccuracies exist, and how to deal with them is typically taught...
6. ## Thread: [RESOLVED] How to fast split Number integet part and decimal part ?

by DEXWERX
Replies
51
Views
1,910

### Re: How to fast split Number integet part and decimal part ?

Such is the life of a Base 10 fraction being crammed into a base 2 format. :)
They can only be so accurate.

If you don't like it you can either use a more accurate format, (doesn't have to be...
7. ## Thread: [RESOLVED] How to fast split Number integet part and decimal part ?

by DEXWERX
Replies
51
Views
1,910

### Re: How to fast split Number integet part and decimal part ?

Why are you using CDec? That converts to Decimal type, which you don't want to use.
Not only is the Decimal type very slow - you're not even storing it in a Decimal, you're doing a second conversion...
Results 1 to 7 of 7

Featured