![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does anybody knows ? Thanks |
#3
| |||
| |||
|
|
Rafael Anschau wrote: Does anybody knows ? Thanks Multiply by 10 and add digit; repeat That's neither a database nor a theory question, though. |
#4
| |||
| |||
|
|
On Mar 24, 11:38 am, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote: Rafael Anschau wrote: Does anybody knows ? Thanks Multiply by 10 and add digit; repeat That's neither a database nor a theory question, though. Asking what algorithm a database uses internaly is a database question. |
#5
| |||
| |||
|
|
Rafael Anschau wrote: On Mar 24, 11:38 am, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote: Rafael Anschau wrote: Does anybody knows ? Thanks Multiply by 10 and add digit; repeat That's neither a database nor a theory question, though. Asking what algorithm a database uses internally is a database question. The database implementation is likely to just call a procedure or function akin to atoi. |
#6
| |||
| |||
|
|
On Mar 24, 1:02 pm, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote: Rafael Anschau wrote: On Mar 24, 11:38 am, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote: Rafael Anschau wrote: Does anybody knows ? Thanks Multiply by 10 and add digit; repeat That's neither a database nor a theory question, though. Asking what algorithm a database uses internally is a database question. The database implementation is likely to just call a procedure or function akin to atoi. It actually converts to binary. Just found out somewhere else, in case someone is interested in how databases implements this particular feature. |
#7
| |||
| |||
|
|
On Mar 24, 1:02*pm, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote: Rafael Anschau wrote: On Mar 24, 11:38 am, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote: Rafael Anschau wrote: Does anybody knows ? Thanks Multiply by 10 and add digit; repeat That's neither a database nor a theory question, though. Asking what algorithm a database uses internally is a database question. The database implementation is likely to just call a procedure or function akin to atoi. It actually converts to binary. Just found out somewhere else, in case someone is interested in how databases implements this particular feature. Encoding and algorhithmics are not synonyms. |
#8
| |||
| |||
|
|
My apologies. The "converts to binary" part was so obvious I didn't think of it as an algorithm. I guess I lost the forest among the trees. |
#9
| |||
| |||
|
|
Unless my trusty old TI-86 is losing precision in embarrassing places, I should also add that 64 bits doesn't quite suffice for 20 decimal digits; it has 18 per cent or so of the total range, so you'd have to go with 19 digits or three extra bits. -- Sampo |
#10
| |||
| |||
|
|
On Apr 8, 10:57 am, Sampo Syreeni <de... (AT) iki (DOT) fi> wrote: Unless my trusty old TI-86 is losing precision in embarrassing places, I should also add that 64 bits doesn't quite suffice for 20 decimal digits; it has 18 per cent or so of the total range, so you'd have to go with 19 digits or three extra bits. -- Sampo Indeed. So a few hypothesis: 1) Another algorithm is being used. 2) 72 bits are being used, and vendors are claiming 64 for marketing purposes, the justification is that 67 is closer to 64 than 72, notwithstanding the fact that 67 bits require full 72 bits on machines with a byte size of 8. There may of course be other hypothesis, thanks for bringing up this very interesting fact. |
![]() |
| Thread Tools | |
| Display Modes | |
| |