15 lines
317 B
Gleam
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)
|
|
}
|