Generalised floating point addition: Difference between revisions

m
m (syntax highlighting fixup automation)
m (→‎{{header|Wren}}: Minor tidy)
 
Line 1,694:
 
Although the BigRat type supports multiplication, repeated addition has been used as in the Kotlin example.
<syntaxhighlight lang="ecmascriptwren">import "./big" for BigRat
import "./fmt" for Fmt
 
var repeatedAdd = Fn.new { |br, times|
9,482

edits