Skip to content

Normalize: Use float instead of double #146

@mk-mxp

Description

@mk-mxp

I came across this in the PHP track docs:

  • Casts (float) and (real) are normalized to (double)

Was there a discussion about that anywhere? Because double is not seen by PHP as a type, it is seen as an alias for float only:

(double) and (real) are aliases of the (float) cast. These casts do not use the canonical type name and are not recommended.

Througout the PHP documentation float is used as the type for floating point numbers.

See:

Metadata

Metadata

Assignees

No one assigned

    Labels

    pausedWork paused until further noticex:action/improveImprove existing functionality/contentx:knowledge/noneNo existing Exercism knowledge requiredx:module/representerWork on Representersx:rep/smallSmall amount of reputationx:size/smallSmall amount of workx:type/codingWrite code that is not student-facing content (e.g. test-runners, generators, but not exercises)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions