Blame view

bower_components/prism/tests/languages/julia/number_feature.test 551 Bytes
eb240478   Luigi Serra   public room cards...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  0b0011

  0o274

  0xBadFace

  42

  1.23

  1e10

  2.5e-4

  0.5f0

  2.5f-4

  0x1p0

  0x1.8p3

  0x.4p-1

  

  ----------------------------------------------------

  

  [

  	["number", "0b0011"],

  	["number", "0o274"],

  	["number", "0xBadFace"],

  	["number", "42"],

  	["number", "1.23"],

  	["number", "1e10"],

  	["number", "2.5e-4"],

  	["number", "0.5f0"],

  	["number", "2.5f-4"],

  	["number", "0x1p0"],

  	["number", "0x1.8p3"],

  	["number", "0x.4p-1"]

  ]

  

  ----------------------------------------------------

  

  Checks for binary, octal, hexadecimal and decimal numbers.