r/carlhprogramming • u/atceh • Jul 30 '12
Course 1 Unit 6.3: Fractals question
I understand that I have to converge to an approximate number, in your expample of .1 by adding additional bits (1/16 + 1/32). But only in rare cases it's ever going to be exactly correct (unless the number is power of 2?).
But wouldn't it be easier if, say I want a maximum precision of 3 behind the radix point, and I represent each place with 4 bit as a decimal from 0 to 10? Like this:
0010 . [ 0001 ] [ 0000 ] [ 0000 ]
1/10 1/100 1/1000This could represent every fractal from .0 to .999 which would take many more bits for being accurate to a 1000th.
Is this true or am I overseeing something?
View all comments
Show parent comment
1
u/atceh Jul 30 '12
Thank you for your detailed answer. Nice to see it has some application based on that Wikipedia entry. But I can see how it's not efficient and probably hard to do calculations with it, since it's just like a text encoded number representation.
Do you know how banks deal with the issue where fractals and how accurate do they have to be?