[Libreoffice-bugs] [Bug 117002] ISNUMBER is treating the value provided by LEFT as text instead of as a number.

2018-04-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=117002

m.a.riosv  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||miguelangelrv@libreoffice.o
   ||rg
 Resolution|--- |NOTABUG

--- Comment #3 from m.a.riosv  ---
(In reply to simm.emanem from comment #0)
> .
> I am pretty sure that the problem is with ISNUMBER, because if I add a
> number to the result of  LEFT, I get a correct sum:   =LEFT(G6)+1 equals 3.
> 
> ISNUMBER is treating the value provided by LEFT as text instead of as a
> number.
Because there is an automatic conversion out of LEFT() that gives an string,
the + operation makes the conversion.

An easy way to have it working is involve the LEFT() with N() function
N(LEFT()), or doing an operation forcing the conversion LEFT()+0.

https://help.libreoffice.org/6.0/en-US/text/scalc/01/04060104.html?System=WIN&DbPAR=CALC#bm_id3153786
N 
Returns the numeric value of the given parameter. Returns 0 if parameter is
text or FALSE.
If an error occurs the function returns the error value.
Syntax
N(Value)
Value is the parameter to be converted into a number. N() returns the numeric
value if it can. It returns the logical values TRUE and FALSE as 1 and 0
respectively. It returns text as 0.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 117002] ISNUMBER is treating the value provided by LEFT as text instead of as a number.

2018-04-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=117002

--- Comment #2 from MM  ---
The outcome looks fully correct here. Left() is outputting character[s] (text)
instead of values, so Isnumber will always be false when given this as input.
https://help.libreoffice.org/Calc/Text_Functions#LEFT

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 117002] ISNUMBER is treating the value provided by LEFT as text instead of as a number.

2018-04-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=117002

--- Comment #1 from simm.ema...@gmail.com ---
The result of =LEFT(G6) is '2, not 2. I used  VALUE(LEFT(G6)) to ensure that
the result is 2, not '2. 

=ISNUMBER(VALUE(LEFT(DG6))) is 2.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs