Change KCL stdlib floating-point results to not be platform dependent (#7499)
* Add libm dependency * Change to use libm for trig functions * Remove redactions for floating point * Update output * Use clippy to prevent stdlib math sneaking back in --------- Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
This commit is contained in:
@ -245,7 +245,7 @@ description: Operations executed artifact_graph_example_code1.kcl
|
||||
"name": "PI",
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 3.142,
|
||||
"value": 3.141592653589793,
|
||||
"ty": {
|
||||
"type": "Unknown"
|
||||
}
|
||||
@ -261,7 +261,7 @@ description: Operations executed artifact_graph_example_code1.kcl
|
||||
"name": "E",
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 2.718,
|
||||
"value": 2.718281828459045,
|
||||
"ty": {
|
||||
"type": "Known",
|
||||
"type": "Count"
|
||||
@ -278,7 +278,7 @@ description: Operations executed artifact_graph_example_code1.kcl
|
||||
"name": "TAU",
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 6.283,
|
||||
"value": 6.283185307179586,
|
||||
"ty": {
|
||||
"type": "Known",
|
||||
"type": "Count"
|
||||
|
@ -91,7 +91,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"value": "seg01"
|
||||
},
|
||||
"to": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
5.0
|
||||
],
|
||||
"type": "ToPoint",
|
||||
@ -105,7 +105,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"sourceRange": []
|
||||
},
|
||||
"from": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
5.0
|
||||
],
|
||||
"tag": {
|
||||
@ -116,7 +116,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"value": "seg02"
|
||||
},
|
||||
"to": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
-5.0
|
||||
],
|
||||
"type": "ToPoint",
|
||||
@ -130,7 +130,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"sourceRange": []
|
||||
},
|
||||
"from": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
-5.0
|
||||
],
|
||||
"tag": null,
|
||||
@ -473,7 +473,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"value": "seg01"
|
||||
},
|
||||
"to": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
5.0
|
||||
],
|
||||
"type": "ToPoint",
|
||||
@ -487,7 +487,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"sourceRange": []
|
||||
},
|
||||
"from": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
5.0
|
||||
],
|
||||
"tag": {
|
||||
@ -498,7 +498,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"value": "seg02"
|
||||
},
|
||||
"to": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
-5.0
|
||||
],
|
||||
"type": "ToPoint",
|
||||
@ -512,7 +512,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"sourceRange": []
|
||||
},
|
||||
"from": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
-5.0
|
||||
],
|
||||
"tag": null,
|
||||
@ -726,7 +726,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"value": "seg01"
|
||||
},
|
||||
"to": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
5.0
|
||||
],
|
||||
"type": "ToPoint",
|
||||
@ -740,7 +740,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"sourceRange": []
|
||||
},
|
||||
"from": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
5.0
|
||||
],
|
||||
"tag": {
|
||||
@ -751,7 +751,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"value": "seg02"
|
||||
},
|
||||
"to": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
-5.0
|
||||
],
|
||||
"type": "ToPoint",
|
||||
@ -765,7 +765,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"sourceRange": []
|
||||
},
|
||||
"from": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
-5.0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1053,7 +1053,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"value": "seg01"
|
||||
},
|
||||
"to": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
5.0
|
||||
],
|
||||
"type": "ToPoint",
|
||||
@ -1067,7 +1067,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"sourceRange": []
|
||||
},
|
||||
"from": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
5.0
|
||||
],
|
||||
"tag": {
|
||||
@ -1078,7 +1078,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"value": "seg02"
|
||||
},
|
||||
"to": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
-5.0
|
||||
],
|
||||
"type": "ToPoint",
|
||||
@ -1092,7 +1092,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc
|
||||
"sourceRange": []
|
||||
},
|
||||
"from": [
|
||||
5.55,
|
||||
5.550000000000001,
|
||||
-5.0
|
||||
],
|
||||
"tag": null,
|
||||
|
Reference in New Issue
Block a user