修改文件、类型显示

This commit is contained in:
巴掌 committed 2020-03-26 15:30:17 +08:00
1 parent 6f5ffeb8d7
commit 7e9310e4dd
254 files changed
+5412 -4872

No files matched your search

+4 -1
View File
@@ -176,8 +176,11 @@ class Complex
list($realPart, $imaginaryPart, $suffix) = self::parseComplex($realPart);
}
}
if ($imaginaryPart <> 0.0 && empty($suffix)) {
if ($imaginaryPart != 0.0 && empty($suffix)) {
$suffix = 'i';
} elseif ($imaginaryPart == 0.0 && !empty($suffix)) {
$suffix = '';
}
// Set parsed values in our properties