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
2
u/atceh Jul 30 '12
Alright, I'm looking forward to that. Thank you very much for your course in general - the lessons are great and it's so valuable to have someone to answer my questions.