This repository was archived by the owner on Jun 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
pages/src/content/docs/stdlib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ These functions extract date/time components in the local timezone.
6363Returns the full year (e.g. 2026).
6464
6565### ` month[t] `
66- Returns the month (1窶・2 ).
66+ Returns the month (1–12 ).
6767
6868### ` day[t] `
69- Returns the day of the month (1窶・1 ).
69+ Returns the day of the month (1–31 ).
7070
7171### ` weekday[t] `
7272Returns the day of the week (0=Sunday, 6=Saturday).
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ Inverse hyperbolic functions.
117117use p-math as m
118118m.sin[m.pi div 2] -- 1
119119m.cos[0] -- 1
120- m.atan2[1; 1] -- 0.7853... (マ /4)
120+ m.atan2[1; 1] -- 0.7853... (π /4)
121121```
122122
123123## Logarithms and Exponents
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ r.getrandbits[16] -- 0..65535
5858```
5959
6060### ` randbytes[n] `
61- Returns an array of ` n ` random bytes (0窶・55 ).
61+ Returns an array of ` n ` random bytes (0–255 ).
6262
6363``` purus
6464use p-random as r
@@ -183,7 +183,7 @@ r.clamp[5; 0; 10] -- 5
183183```
184184
185185### ` lerp[a; b; t] `
186- Linear interpolation between ` a ` and ` b ` by factor ` t ` (0窶・ ).
186+ Linear interpolation between ` a ` and ` b ` by factor ` t ` (0–1 ).
187187
188188``` purus
189189use p-random as r
You can’t perform that action at this time.
0 commit comments