string_formatter_stress

concreteproperties.post.string_formatter_stress(value: float, eng: bool, prec: int) str[source]

Formats a float using engineering notation for stress plotting.

Parameters:
  • value (float) – Number to format

  • eng (bool) – If set to True, formats with engineering notation. If set to False, formats with fixed notation.

  • prec (int) – The desired precision (i.e. one plus this value is the desired number of digits)

Returns:

Formatted string

Return type:

str