Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percentage token has .tvalue as float #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jnwltr
Copy link

@jnwltr jnwltr commented Sep 17, 2019

  • 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
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
Copy link
Author

jnwltr commented Mar 5, 2020

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