文件最后提交记录最后更新时间
!837 ability,Account,AppSample,Basic,common 等适配arm64位系统版本 * 901适配second * 901适配 3 年前
!897 整改应用readme * Description: fix readmre 3 年前
!492 使用900版本IDE对sample进行编译整改 * adapter to IDE 900 4 年前
!960 README整改 * update readme 3 年前
!586 修复signingConfig和JsImage、Process工程报错问题 * modify getPid->pid * fix test bug 4 年前
!492 使用900版本IDE对sample进行编译整改 * adapter to IDE 900 4 年前
!837 ability,Account,AppSample,Basic,common 等适配arm64位系统版本 * 901适配second * 901适配 3 年前
README.md

util Tool Function – RationalNumber

Introduction

This sample shows how to use the RationalNumber function in the util class for rational number operations.

Usage

  1. Touch Compare rational numbers to compare two rational numbers. The comparison result is displayed in the text box.

  2. Touch Get rational number value. The integer or floating point value of the first rational number is displayed in the text box.

  3. Touch Get numerator and denominator. The numerator and denominator of the rational number are displayed in the text box.

  4. Touch Check for zero to check whether the rational number is 0. The check result is displayed in the text box.

  5. Touch Check for NaN to check whether the rational number is Not a Number (NaN). The check result is displayed in the text box.

  6. Touch Check for finite number to check whether the rational number is a finite number. The check result is displayed in the text box.

Constraints

This sample can only be run on standard-system devices.