node-webvtt
node-webvtt copied to clipboard
[Compiler] Rounding Error for long decimals
Because I didn't carry the rounding, numbers such as 1.99999996 will compile to 00:00:01.1 . This is extremely problematic.
It's fixed pretty easily by changing compiler:145 from Math.round --> Math.floor. I'm just waiting on my PR to be approved
Fixed in #22
This error was re-introduced in #36
1.99999 will now compile to 00:00:01.1000 (which makes the VTT file invalid).
See here: https://jsfiddle.net/londonshliach/e0kpbgL3/