LEFT and RIGHT functions are returning incorrect results #959
dksingla
started this conversation in
API Questions
Replies: 2 comments 1 reply
|
Hi @dksingla thanks for your report. This behaviour is caused by interpreting string Try this: I see that this behaviour is not documented in our docs, so I'm creating an issue to do so: #960 Unit tests that demonstrate this: hyperformula/test/CellContentParser.spec.ts Lines 128 to 135 in fd0a405 |
1 reply
|
@dksingla We've just released the new version of the documentation with a detailed description of how to force a string value type. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
Below is an example of the LEFT formula
[["0003", "=LEFT(A1,2)"]];
It returns 3, instead, it should return 00 as LEFT takes the first argument of the typed string.
All reactions