Skip to content

[FEATURE] Casting Numbers to Strings #22

@BigBadE

Description

@BigBadE

Describe Your Feature
Casting any number to a string

Provide a Code Snippet Using Your Feature

import numbers::Cast;

fn main() {
    printf(12.cast<str>());
}

Prerequisites
String adding

Additional Information
Should be done with an implementation of the Cast trait in the string.rv file. Should iterate over each digit, adding them to a string then returning that string.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Medium

Status

Medium

Status

Easy

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions