-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
docsImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomersscriptingAbout Typst's coding capabilitiesAbout Typst's coding capabilitiessyntaxAbout syntax, parsing, etc.About syntax, parsing, etc.
Description
Description
According to the Typst documentation https://typst.app/docs/reference/foundations/int/ the smallest integer is -9223372036854775808 but when using the literal for that number it gets parsed as a float instead of an integer. The value can still be obtained through arithmetic:
#let literal_min_int = -9223372036854775808 // parsed as float
#let real_min_int = -9223372036854775807 - 1
#type(literal_min_int) // float
#type(real_min_int) // integerReproduction URL
https://typst.app/project/rb52J82NefdZ4oTOE3ODK_
Operating system
Web app, Linux
Typst version
- I am using the latest version of Typst
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docsImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomersscriptingAbout Typst's coding capabilitiesAbout Typst's coding capabilitiessyntaxAbout syntax, parsing, etc.About syntax, parsing, etc.