I used the EDSM API to look it up, as the site itself rounds most values.Hmm. Eock Groa UW-L b40-1 BC 3 shows as -180 on EDSM when I look there. I store it as a "float", so I shouldn't be losing any precision.
{
"id": 305235143,
"id64": 540436017409020123,
"bodyId": 15,
"name": "Dryae Flyoae NY-H d10-118 A 8",
"discovery": {
"commander": "RecessiveHagis",
"date": "2021-04-12 21:53:32"
},
"type": "Planet",
"subType": "Class I gas giant",
"parents": [
{
"Star": 1
},
{
"Null": 0
}
],
"distanceToArrival": 3777,
"isLandable": false,
"gravity": 1.5135543025326548,
"earthMasses": 17.174541,
"radius": 21484.64,
"surfaceTemperature": 135,
"surfacePressure": 0,
"volcanismType": "No volcanism",
"atmosphereType": "No atmosphere",
"atmosphereComposition": {
"Hydrogen": 74.11,
"Helium": 25.89
},
"solidComposition": null,
"terraformingState": "Not terraformable",
"orbitalPeriod": 5178.425943961805,
"semiMajorAxis": 6.141892255339167,
"orbitalEccentricity": 0.314723,
"orbitalInclination": -179.999988,
"argOfPeriapsis": 223.851824,
"rotationalPeriod": 1.1571521667939815,
"rotationalPeriodTidallyLocked": false,
"axialTilt": -0.276266,
"updateTime": "2021-04-12 21:53:32"
}
I used the EDSM API to look it up, as the site itself rounds most values.
Thats just excellent have a few stars ️. Thats excellent - sis you use Open GL to write the image? Excellent - I’m going to download and print it for my living room. Imagine this as a hologram on a concourse in a planet mapping room - have another ️
A fun little "easter egg" that might be appreciated here-- the background nebula image on the page is the real-world NGC 7822. Because it's always NGC 7822.
Personally and from my very limited experience I never ran into that problem as I always use decimal because I like that I can define how many digits before and after the decimal seperator are stored.FLOAT stores 24 significant bits of data (equivalent to about 7 decimal digits; storage=4 bytes), with an exponent ranging over about 10 ** +/-38.
DOUBLE stores 53 bits (about 16 digits, 8 bytes) and has a huge range.
select cast(some_float_field as decimal(8, 3))
MariaDB [elite]> select bodyId64,edsmID,name,orbitalInclination inclination,cast(orbitalInclination as decimal(9,6)) incdecimal from planets where name='Eock Groa UW-L b40-1 BC 3' or name='Dryae Flyoae NY-H d10-118 A 8';
+--------------------+-----------+-------------------------------+-------------+-------------+
| bodyId64 | edsmID | name | inclination | incdecimal |
+--------------------+-----------+-------------------------------+-------------+-------------+
| 540436017409020123 | 305235143 | Dryae Flyoae NY-H d10-118 A 8 | -180 | -179.999985 |
| 864693661545485657 | 22853615 | Eock Groa UW-L b40-1 BC 3 | -180 | -179.999756 |
+--------------------+-----------+-------------------------------+-------------+-------------+
2 rows in set (0.002 sec)