Skip to content

Does Kuroko have an equivalent to Python's round() method? #48

Open
@kseistrup

Description

@kseistrup

[ Re: commit f1d7bda ]

I cannot seem to find a way to round a float to an int (or to a float with a given number of decimals), the way Python's round() does (and I ran into #47 when I tried to write a simple method that would round to an int).

I can see "round" referenced in the syn_py_types array in rline.c (line 910), but that seems to be related to Python, and not to Kuroko.

Am I missing something obvious?

If there is currently no way to round(number, ndigits=None) in Kuroko, please let this issue serve as an enhancement request.

🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions