ink-library icon indicating copy to clipboard operation
ink-library copied to clipboard

print_num(x) function should cast its argument to an int

Open cmwedin opened this issue 3 years ago • 1 comments

This is a very minor issue and very easy to change on your own, so i understand if it isn't a priority, but it would make sense to want to print out a float in text as the closest integer. As it stands float arguments will be accepted but not print properly for inputs higher than 20 as integer division isn't used in the conditional.

cmwedin avatar Jun 30 '21 12:06 cmwedin

Good idea! We're actually rolling this function into inky's "ink snippets" menu in the next version, so I'll include this tweak there. (This repo is becoming somewhat redundant now ink has an internal library.)

joningold avatar Jun 30 '21 12:06 joningold