Skip to content

Problems in the number formatting #8

@SanderDeWaal1992

Description

@SanderDeWaal1992

While using this modules I noticed some problems in the results. I've listed them here;

  • There is always a 0 around the decimal point even when there shouldn't. For example:
    should give '.' for input 0 and format '.#' but gives '0.0'
    should give '. ' for input 0 and format '.?' but gives '0.0'
    should give '.0' for input 0 and format '.0' but gives '0.0'

  • should give '-01' for input -1 and format '00' but gives '-1'

  • It does not always behave well when the format is equal to '.'. For example:
    should give '-1.' for input -1 and format '.' but gives '.'
    should give '100.' for input 100 and format '.' but gives '.'

  • The scientific notation formats do not behave the same as in Excel. For example:
    should give '-.1E+1' for input -1 and format '.0E+0' but gives '-1.0E+0'
    should give '.45E+0' for input 0.45 and format '.00E+0' but gives '4.50E-1'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions