mirror of
https://github.com/3b1b/manim.git
synced 2026-04-26 03:00:23 -04:00
+ for 0 in Decimal number
This commit is contained in:
@@ -29,7 +29,10 @@ class DecimalNumber(VMobject):
|
||||
|
||||
shows_zero = np.round(number, self.num_decimal_places) == 0
|
||||
if num_string.startswith("-") and shows_zero:
|
||||
num_string = num_string[1:]
|
||||
if self.include_sign:
|
||||
num_string = "+" + num_string[1:]
|
||||
else:
|
||||
num_string = num_string[1:]
|
||||
|
||||
self.add(*[
|
||||
SingleStringTexMobject(char, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user