Skip to content

Decimal literals - #8288

Open
Lege19 wants to merge 10 commits into
typst:mainfrom
Lege19:decimal-literals
Open

Lege19 wants to merge 10 commits into
typst:mainfrom
Lege19:decimal-literals

Conversation

@Lege19

@Lege19 Lege19 commented May 14, 2026

Copy link
Copy Markdown
Contributor

Fix #8093

With this change 1.2345d is equivalent to the longer decimal("1.2345")

I also updated the diagnostic previously emitted on decimal(1.2345) to suggest 1.2345d instead of decimal("1.2345"), and updated the documentation to recommend using the new literal syntax.

@Lege19
Lege19 marked this pull request as draft May 14, 2026 23:10
@Lege19
Lege19 force-pushed the decimal-literals branch from 965b55e to 37d499e Compare May 14, 2026 23:16
@Lege19
Lege19 marked this pull request as ready for review May 14, 2026 23:16
@Lege19
Lege19 marked this pull request as draft May 15, 2026 08:03
@Lege19 Lege19 changed the title Decimal literals (Feature) Decimal literals May 15, 2026
@Lege19
Lege19 marked this pull request as ready for review May 15, 2026 10:13
@isuffix isuffix added the scripting About Typst's coding capabilities label May 17, 2026
@laurmaedje laurmaedje added syntax About syntax, parsing, etc. foundations Related to the foundations category, which contains foundational types and elements. labels Jun 4, 2026
@laurmaedje laurmaedje added the waiting-on-decision A decision must be made to proceed. label Sep 18, 2026
@laurmaedje laurmaedje added waiting-on-review This PR is waiting to be reviewed. and removed waiting-on-decision A decision must be made to proceed. labels Oct 9, 2026
@laurmaedje laurmaedje changed the title (Feature) Decimal literals Decimal literals Oct 9, 2026
@isuffix

isuffix commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

We've decided to keep moving this forward regardless of what happens with #8585.

However because this PR is so old and has merge conflicts, I'm going to just force-push the fixes and instead of reviewing the code, I am just going to add my own new commits on top.

@Lege19 you're free to continue stewarding this PR from here but since it has been a while, I can take charge if you would like me to or if you don't reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

foundations Related to the foundations category, which contains foundational types and elements. scripting About Typst's coding capabilities syntax About syntax, parsing, etc. waiting-on-review This PR is waiting to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

decimal Literals

3 participants