Skip to content

Commit

Permalink
remove default precision
Browse files Browse the repository at this point in the history
  • Loading branch information
Alforoan committed Sep 23, 2024
1 parent 30bacc8 commit 6ac8ad8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/engine/Source/Core/JulianDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,9 +784,6 @@ JulianDate.toIso8601 = function (julianDate, precision) {
let millisecondStr;

if (millisecond !== 0 || defined(precision)) {
if (!defined(precision)) {
precision = 7; // Default precision if not provided
}
// Forces milliseconds into a number with the specified precision, without scientific notation
const fractionalSeconds = (second + millisecond * 0.001).toFixed(precision);
const parts = fractionalSeconds.split('.');
Expand Down

0 comments on commit 6ac8ad8

Please sign in to comment.