Skip to content

Commit

Permalink
frontend: negative numbers "M03"
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Nov 19, 2023
1 parent c7f706d commit 1b901c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atciss-frontend/src/app/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const zn = (n: number) => (x: number) =>
(x < 0 ? "-" : "") + String(Math.abs(x)).padStart(n, "0")
(x < 0 ? "M" : "") + String(Math.abs(x)).padStart(n, "0")
export const z2 = zn(2)
export const z3 = zn(3)
export const z4 = zn(4)
Expand Down

0 comments on commit 1b901c9

Please sign in to comment.