Skip to content

Rounding and Type Change methods #23

@Lokathor

Description

@Lokathor

Before we can begin implementing a few of the more advanced functions, we'll need a few more of the basic utility functions for manipulating values.

For floats:

  • round to nearest whole number (output is the same float type)
  • ceiling / round to infinity
  • floor / round to negative infinity
  • truncate / round to zero
  • fraction (remove the whole-number part)
  • round to integer (output is the same-bit signed integer type)

For signed ints:

  • round to float (output is the same-bit float type)

Metadata

Metadata

Assignees

Labels

C-feature-requestCategory: a feature request, i.e. not implemented / a PRC-tracking-issueOngoing issue with checkboxes for partial progress and such

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions