decimalfraction.py 333 B

123456789101112
  1. # -*- coding: utf-8 -*-
  2. # Copyright (c) 2021, Brandon Nielsen
  3. # All rights reserved.
  4. #
  5. # This software may be modified and distributed under the terms
  6. # of the BSD license. See the LICENSE file for details.
  7. def normalize(value):
  8. """Returns the string with decimal separators normalized."""
  9. return value.replace(",", ".")