Skip to content

Is there any way to or truncate a float within the Slint language? #1708

Answered by tronical
DeonteVanterpool asked this question in Q&A
Discussion options

You must be logged in to vote

There's Math.floor (and other functions in Math), but there's no trunc yet. Would that work for you?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DeonteVanterpool
Comment options

Answer selected by DeonteVanterpool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants