Skip to content

Commit 9e92ed9

Browse files
authored
Create META_AVOID_FLOAT.json
1 parent da17976 commit 9e92ed9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/Metadata/META_AVOID_FLOAT.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"ID": "META_AVOID_FLOAT",
3+
"Name": "Do not use floating point data types",
4+
"Category": "Metadata",
5+
"Description": "Floating point datatypes can cause unexpected results when evaluating values close to 0. Use Decimal instead.",
6+
"Severity": 3,
7+
"Scope": "Measure, DataColumn, CalculatedColumn, CalculatedTableColumn",
8+
"Expression": "DataType = \"Double\"",
9+
"FixExpression": "DataType = DataType.Decimal"
10+
}

0 commit comments

Comments
 (0)