x = cint("+1")
I Think that return 1 is very sucessful.
But my macro return is 0 zero.
Apache Open Office 4.1.7 on Windows 10.
Edit: Changed subject, was cint() with error? Make your post understandable by others -- MrProgrammer, forum moderator |
Edit: Changed subject, was cint() with error? Make your post understandable by others -- MrProgrammer, forum moderator |
Code: Select all
cint(val(("+1"))
Expression: Any numeric expression that you want to convert.
CInt Function [Runtime]
Converts any string or numeric expression to an integer.
Not in my LO 6.1.6, but it works in my portable LO 7.3.2This has been fixed in LibreOffice.
LibreOffice fixed that bug [1] in 7.1Zizi64 wrote:Not in my LO 6.1.6, but it works in my portable LO 7.3.2
Yes.Somebody's help wrote: CInt Function [Runtime]
Converts any string or numeric expression to an integer.
Code: Select all
h = CInt("+10000E-3 - 77")
Code: Select all
h = CInt("10 - 77")
Code: Select all
= "0" + "+10000E-3 - 77"
Code: Select all
="+10000E-3" -" 77"
Likely. Its a trivial bug affecting the tiny subset of macro users (in turn a very small subset of users) who will ever use a "+" at the start of a string... with easy workarounds. Worth knowing about though...Don't expect this bug to get fixed any time soon.