mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
+ for 0 in Decimal number
This commit is contained in:
parent
0d95fe7234
commit
7736e321a0
1 changed files with 4 additions and 1 deletions
|
@ -29,6 +29,9 @@ class DecimalNumber(VMobject):
|
|||
|
||||
shows_zero = np.round(number, self.num_decimal_places) == 0
|
||||
if num_string.startswith("-") and shows_zero:
|
||||
if self.include_sign:
|
||||
num_string = "+" + num_string[1:]
|
||||
else:
|
||||
num_string = num_string[1:]
|
||||
|
||||
self.add(*[
|
||||
|
|
Loading…
Add table
Reference in a new issue