Skip to content

Commit

Permalink
refactor(site): refactor the celsius example
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Dec 5, 2024
1 parent 82ba0e0 commit a15c818
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions site/docs/src/common/celsius.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@ Save a `PHI` program to a file.

```$
cat > celsius.phi <<EOM
{⟦
c ↦ Φ.org.eolang.float(as-bytes ↦ Φ.org.eolang.bytes(Δ ⤍ 40-39-00-00-00-00-00-00)), // 25.0
result ↦
ξ.c.times(x ↦ ⟦ Δ ⤍ 3F-FC-CC-CC-CC-CC-CC-CD ⟧) // 1.8
.plus(x ↦ ⟦ Δ ⤍ 40-40-00-00-00-00-00-00 ⟧), // 32.0
λ ⤍ Package
⟧}
{
c ↦ Φ.org.eolang.float (
as-bytes ↦ 25.0
),
result ↦ ξ.c.times (
x ↦ 1.8
)
.plus (
x ↦ 32.0
),
λ ⤍ Package
}
EOM
```

0 comments on commit a15c818

Please sign in to comment.