Print zeros
This commit is contained in:
parent
ae46252c3e
commit
6db1b1e943
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ public:
|
||||||
}
|
}
|
||||||
os << 'i';
|
os << 'i';
|
||||||
}
|
}
|
||||||
|
if (z.r == 0 && z.i == 0) {
|
||||||
|
os << '0';
|
||||||
|
}
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
void operator=(const cnumber &z) {
|
void operator=(const cnumber &z) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue