Handbook
Glossary
parse-24hr-temp ( str -- str' )
Vocabulary
metar
.
private
Inputs
str
an
object
Outputs
str'
an
object
Definition
USING:
formatting
kernel
splitting
;
IN:
metar.private
:
parse-24hr-temp
( str -- str' )
"4"
?head
drop
double-value
[
dup
C>F
"%.1f °C (%.1f °F)"
sprintf
]
bi@
"24-hour maximum temperature %s minimum temperature %s"
sprintf
;