UNPKG
big-rat
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.0.0
A big integer rational number
github.com/rat-nest/big-rat
rat-nest/big-rat
big-rat
/
to-string.js
8 lines
(5 loc)
•
115 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
'use strict'
module
.
exports
= toString
function
toString
(
r
) {
return
r[
0
].
toString
() +
'/'
+ r[
1
].
toString
() }