https://bugs.documentfoundation.org/show_bug.cgi?id=143974
--- Comment #7 from Andreas Heinisch <[email protected]> --- Consider this small snippet: Sub Main i = 44 MsgBox TypeName(i) ' prints integer i = i + 1 MsgBox TypeName(i) ' prints double End Sub Because of [1], but the calculations are correct (the variable contains 47.000000000000000). However, the homebrew myftoa in [2] imho does not correctly calculate the desired precision. I even missed some precision scaling in [3] for Bug 107953. Mike what is your opinion about a fix for this problem? Can this be addressed using the rtl_math_doubleToString as in Bug 130725? [1] https://opengrok.libreoffice.org/xref/core/basic/source/sbx/sbxvalue.cxx?r=010e99c7#1084 [2] https://opengrok.libreoffice.org/xref/core/basic/source/sbx/sbxscan.cxx?r=ef38b9af#320 [3] https://opengrok.libreoffice.org/xref/core/basic/source/sbx/sbxscan.cxx?r=ef38b9af#810 -- You are receiving this mail because: You are the assignee for the bug.
