Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 282 Bytes

approximated_constants.md

File metadata and controls

17 lines (13 loc) · 282 Bytes

approximated_constants

What it does

Checks for number literals that approximate constants.

Why this is bad

Using constants provided by the Lua standard library is more precise.

Example

local x = 3.14

...should be written as...

local x = math.pi