

def scale_to_step(self, scale):
    "\n        Returns HTML5 compatible step attribute for given decimal scale.\n\n        :param scale: an integer that defines a Numeric column's scale\n        "
    return str(pow(Decimal('0.1'), scale))

dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py FormGenerator.scale_to_step/original