Reading this http://en.wikibooks.org/wiki/Ada_Programming/Types/delta
has got me wondering what the limit value of delta
is.
For example
delta 127 range 0..1_000_000;
needs one byte to hold the delta value.
But
delta 0.0000000001 range 0..1;
would need more bytes, right?
So is there a limit to delta? Surely we can't go on indefinitely to smaller increments?
In the above link it says
If the compiler accepts your fixed point type definition, it guarantees that values represented by that type will have at least the degree of accuracy specified (or better). If the compiler cannot support the type definition (e.g. due to limited hardware) then a compile-time error will result.