Skip to content

Percentage token has .tvalue as float#239

Open
jnwltr wants to merge 1 commit into
vallettea:masterfrom
jnwltr:fix/percentage-token
Open

Percentage token has .tvalue as float#239
jnwltr wants to merge 1 commit into
vallettea:masterfrom
jnwltr:fix/percentage-token

Conversation

@jnwltr

@jnwltr jnwltr commented Sep 17, 2019

Copy link
Copy Markdown
  • str was expected
  • e.g. =IF(RANGE>75%; 1; 0) fails since 75% is translated to 0.75
  • while =IF(RANGE>.75; 1; 0) would translate to '0.75'

@brianmay

Copy link
Copy Markdown
Collaborator

This really requires tests... Also if the code was rebased/merged with master, the CI tests should now pass.

- `str` was expected
- e.g. `=IF(RANGE>75%; 1; 0)` fails since `75%` is translated to .75
- while `=IF(RANGE>.75; 1; 0)` would translate to '0.75'
@jnwltr jnwltr force-pushed the fix/percentage-token branch from 2e8e866 to 3b71381 Compare March 5, 2020 10:52
@jnwltr

jnwltr commented Mar 5, 2020

Copy link
Copy Markdown
Author

I'll gladly write a test. So create tests/files/IfPercent.xlsx and add the test to tests/excel/test_excel.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants