<?php substr_replace( array|string $string, array|string $replace, array|int $offset, array|int|null $length = null): string|array
<?php $precision = $column->attributes()[0]; $scale = $column->attributes()[1] ?? 0; $value = substr_replace(str_pad("", $precision, '9'), ".", $precision - $scale, 0); if (intval($scale) === 0) { $value = trim($value, ".");