Skip to main content

getFraction


id: getFraction

title: system.kanoa.utilities.getFraction

This function requires KanoaCore module

Description

Given a number, this function returns a string representation of the number as a fraction (kanoaCore).

Syntax

getFraction(number)
  • Parameters
      number (Float) - The input float number.
  • Returns
      fraction (String) - A string representation of the number as a fraction.
  • Code Example

    # Example Usage:
    fraction_string = system.kanoa.utilities.getFraction(number)