bettys-bike-shop

This commit is contained in:
Alexander Heldt
2025-10-30 20:08:25 +01:00
parent 3c64c873ef
commit 17e35b1c6a
10 changed files with 332 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import gleam/float
import gleam/int
import gleam/string
// TODO: import the `gleam/float` module
// TODO: import the `gleam/string` module
pub fn pence_to_pounds(pence: Int) -> Float {
int.to_float(pence) /. 100.0
}
pub fn pounds_to_string(pounds: Float) -> String {
string.append("£", float.to_string(pounds))
}