Skip to content

multiply integer to float  #66928

@ghost

Description

I think it would be convenient to allow multiplying float with integers to get back an float.

let a = 32.0;
let b = 2;

dbg!(a*b);

Is there a particular reason I need to use 2.0 to get the result I want?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-langRelevant to the language teamneeds-rfcThis change is large or controversial enough that it should have an RFC accepted before doing it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions