value. Return a string with its base 7 representation. Negative numbers get a leading -, and there must be no leading zeros (zero itself is written as "0").value=60 → '114'
60 = 1·49 + 1·7 + 4, so in base seven it is 114.
value=-14 → '-20'
14 = 2·7 + 0, which is 20; the minus sign stays in front.
value=6 → '6'
Numbers below 7 take a single digit, same as in decimal.
value ≤ 10⁷value=60
'114'
Run checks the first 3 tests in your browser. Submit checks all 46 tests on the server, hidden ones included.