yamadapc/js-written-number

Fractions and non-integer numbers

Open

#2 aperta il 17 apr 2015

Vedi su GitHub
 (9 commenti) (0 reazioni) (0 assegnatari)JavaScript (121 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (372 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Neat lib, thanks for the clean & easy to scan code!

it('correctly converts numbers < 0', function() {
  writtenNumber(0.5).should.equal('half');
  writtenNumber('1/3').should.equal('a third'); // one third?
  writtenNumber('0.333333333').should.equal('a third'); // one third?
  writtenNumber('0.1').should.equal('a tenth'); // one tenth?
  writtenNumber('1/16').should.equal('a sixteenth');
});

Might be out of scope?

Guida contributor