Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
dham committed Oct 3, 2018
1 parent 585ce6b commit f62fcbf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions coffee/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,12 @@ def values(self, val):
self._values = val

def _formatter(self, v):
"""Format a complex into a string, showing up to ``precision`` decimal digits.
This function is partly extracted from the open_source "FFC: the FEniCS Form
Compiler", freely accessible at https://bitbucket.org/fenics-project/ffc."""
"""Format a real or complex value into a string, showing up to
``precision`` decimal digits. This function is partly
extracted from the open_source "FFC: the FEniCS Form
Compiler", freely accessible at
https://bitbucket.org/fenics-project/ffc.
"""
f = "%%.%dg" % self.precision
f_int = "%%.%df" % 1
eps = 10.0**(-self.precision)
Expand Down

0 comments on commit f62fcbf

Please sign in to comment.