On 7/20/2010 11:58:04 PM, peter rejto wrote:
>Hello.
>
> Did anybody try to use Vedit
> to get an approximation to
> square root 2 ?
...
>
> I have a hunch that this
> implementation problem is
> similar to one of the rosetta
> code implementations of Pauli Lindgren's, which says the
> following:
>
> :FIBONACCI:
...
Vedit macro language only uses integer numbers.
Fibonacci numbers are integers.
Square root requires floating point numbers.
Of course you could do floating point calculations for example by implementing BCDcalculations yourself (using one character for each digit), but there is not much point doing that except if you want to practice programming.

Pauli

