New answers tagged

1

Forth (gforth), 92 bytes : f 0 -rot 3. do 0 -rot >number 1 m+ loop 2drop + >r swap i * + r> <# 0 #s '/ hold + #s #> ; Try it online! The pain of parsing and formatting... Takes a string as pointer length (gforth standard), and returns a string in the same format. How it works : f ( addr u -- addr u ) \ take a string and return a string 0 -...


0

Husk, 4 bytes Σmrw Try it online! ṁrw is supposed to work, but there's some bug that returns an empty list. Anyway, hooray for native rational number support.


Top 50 recent answers are included