-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoml.toml
More file actions
32 lines (24 loc) · 797 Bytes
/
toml.toml
File metadata and controls
32 lines (24 loc) · 797 Bytes
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
# This is a TOML document with various number formats
title = "TOML Example with Numbers"
[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00 # Date-time format
[database]
enabled = true
ports = [ 0b111110100000, 0o1760, 0x1F4 ] # Binary, octal, and hexadecimal numbers
data = [ ["delta", "phi"], [3.14, 1e-3, +2.5e+10] ] # Floats in scientific notation
temp_targets = { cpu = 79.5, case = 72.0, gpu = -42.3 } # Decimal floats
[servers]
[servers.alpha]
ip = "10.0.0.1"
role = "frontend"
max_connections = 0xFF # Hexadecimal integer
[servers.beta]
ip = "10.0.0.2"
role = "backend"
uptime = 1e6 # Scientific notation for float
load = -0.0125 # Negative float
[special_values]
positive_inf = +inf
negative_inf = -inf
not_a_number = nan # Special floating-point values