https://bugs.freedesktop.org/show_bug.cgi?id=81337

--- Comment #2 from Ηλίας Ηλιάδης <[email protected]> ---
I have a LO BASIC script that converts arbitrary big numbers to greek words. (I
have it also coded in python, in MS VB6, in gambas and as a command line for
bash). It can also create "greek words" for currency numbers. The script can
convert numbers bigger even of 10^21.

In MS VB6 (where first coded), I used the string returned from text box and
splitted the content. From a number cell, the LO BASIC script can only accept
an integer up to +2147483647 (a small number if it comes for bank or country
budgets). I use only MODULO 10,100 and 1000 in order to extract the last three
digits involved in each step of convertion. I could use simple string split,
but the number must be imported as string in a way that does not include
scientific notation.

If I can add two numbers greater than +2147483647 in two calc cells and have
non erroneous results than I think that this can be done for LO BASIC also.
(e.x. By passing to some random Calc cells the numbers and get from a third
their sum). Of course if Calc itself has a bug in floating point arithmetic for
integers used in cells, than my proposal for such an approach is also buggy.



I do not know if it is safe to accept, in my function, floating point numbers
(do not how they are converted inside LO BASIC to "digits"). But at least LO
BASIC can include the 64 bit numbers (even just the signed ones which are  2^63
- 1).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to