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

Index in for loop shows up as a decimal when adding an int #101

Closed
BryanNorden opened this issue Apr 3, 2018 · 1 comment
Closed

Index in for loop shows up as a decimal when adding an int #101

BryanNorden opened this issue Apr 3, 2018 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@BryanNorden
Copy link

BryanNorden commented Apr 3, 2018

When adding an int to the index for loops it displays as a float instead of an int.

Example

let index = 0
index + 1 should equal and show up as 1 . However, it shows up as 1.0, 2.0, 3.0, etc

#for(player in players) { <tr><td>#(index+1)</td><td>#(player.name)</td></td></tr> }

Expected rendering:

1 Bryan
2 Jessica
3 Chris

How it actually renders:

1.0 Bryan
2.0 Jessica
3.0 Chris

Note:

It could be nice to get a number formatting tag to display it to how the user wants it displayed

@tanner0101 tanner0101 added this to the 3.0.0 milestone Aug 8, 2018
tanner0101 added a commit that referenced this issue Aug 8, 2018
@tanner0101 tanner0101 added the bug Something isn't working label Aug 8, 2018
@tanner0101 tanner0101 self-assigned this Aug 8, 2018
@tanner0101
Copy link
Member

Integer math support added in #122. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants