Numbers are available in JavaScript and TypeScript. Numbers represent floating numbers in JavaScript. You feed them right in with the keyboard, without any decoration like we had to do for strings:

let whole: number = 6;let decimal: number = 2.5;let hex: number = 0xf00d; let binary: number = 0b1010; let octal: number = 0o744;

Get TypeScript 2.x for Angular Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.