Files
gleam-learning/bettys-bike-shop/src/bettys_bike_shop.gleam
markgerrard e9354a7920 first commit
2026-03-17 20:44:57 +00:00

15 lines
317 B
Gleam

import gleam/float
import gleam/int
// TODO: import the `gleam/int` module
// 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) {
"£" <> float.to_string(pounds)
}