Skip to main content
added 501 characters in body
Source Link
l4m2
  • 28.3k
  • 2
  • 25
  • 103

JavaScript (Node.js), 23 bytes

(a,b,i)=>a*10n**i/b%10n

Try it online!


JavaScript (Node.js), 43 bytes, port

(a,b,i)=>eval(`for(;a=10*(a%b),i--;)a/b|0`)

Try it online!

JavaScript (Node.js), 51 bytes

(n,d,x)=>[...Array(x)].map(_=>[n*=10,u=n/d,n%=d])|u

Try it online!

use Array rather than recursive to avoid stackoverflow

JavaScript (Node.js), 43 bytes, port

(a,b,i)=>eval(`for(;a=10*(a%b),i--;)a/b|0`)

Try it online!

JavaScript (Node.js), 51 bytes

(n,d,x)=>[...Array(x)].map(_=>[n*=10,u=n/d,n%=d])|u

Try it online!

use Array rather than recursive to avoid stackoverflow

JavaScript (Node.js), 23 bytes

(a,b,i)=>a*10n**i/b%10n

Try it online!


JavaScript (Node.js), 43 bytes, port

(a,b,i)=>eval(`for(;a=10*(a%b),i--;)a/b|0`)

Try it online!

JavaScript (Node.js), 51 bytes

(n,d,x)=>[...Array(x)].map(_=>[n*=10,u=n/d,n%=d])|u

Try it online!

use Array rather than recursive to avoid stackoverflow

added 55 characters in body
Source Link
l4m2
  • 28.3k
  • 2
  • 25
  • 103

JavaScript (Node.js), 43 bytes, port

(a,b,i)=>eval(`for(;a=10*(a%b),i--;)a/b|0`)

Try it online!

JavaScript (Node.js), 51 bytes

(n,d,x)=>[...Array(x)].map(_=>[n*=10,u=n/d,n%=d])|u

Try it online!

use Array rather than recursive to avoid stackoverflow

JavaScript (Node.js), 43 bytes

(a,b,i)=>eval(`for(;a=10*(a%b),i--;)a/b|0`)

Try it online!

JavaScript (Node.js), 51 bytes

(n,d,x)=>[...Array(x)].map(_=>[n*=10,u=n/d,n%=d])|u

Try it online!

use Array rather than recursive to avoid stackoverflow

JavaScript (Node.js), 43 bytes, port

(a,b,i)=>eval(`for(;a=10*(a%b),i--;)a/b|0`)

Try it online!

JavaScript (Node.js), 51 bytes

(n,d,x)=>[...Array(x)].map(_=>[n*=10,u=n/d,n%=d])|u

Try it online!

use Array rather than recursive to avoid stackoverflow

Source Link
l4m2
  • 28.3k
  • 2
  • 25
  • 103

JavaScript (Node.js), 43 bytes

(a,b,i)=>eval(`for(;a=10*(a%b),i--;)a/b|0`)

Try it online!

JavaScript (Node.js), 51 bytes

(n,d,x)=>[...Array(x)].map(_=>[n*=10,u=n/d,n%=d])|u

Try it online!

use Array rather than recursive to avoid stackoverflow