Fxiaoke Developer Manual Fxiaoke Developer Manual
  • APL Development Manual
  • PWC Development Manual
  • OpenAPI Documentation
APL Code Introduction
API Reference
Development Tools
Release Notes
  • 简体中文
  • English
APL Code Introduction
API Reference
Development Tools
Release Notes
  • 简体中文
  • English
  • Getting Started

  • Data Types

    • Data Type Introduction
    • Math Type
    • CollectionUtils Type
    • Range Type
    • HttpResult Type
    • QueryResult Type
    • Duration Type
    • Map Type
    • List Type
    • DateTime Type
    • Time Type
    • Date Type
    • Boolean Type
    • BigDecimal Type
    • String Type
    • Integer Type
  • API

Math Type

Math Type
Math - Methods related to mathematical calculations

Static methods of Math type:

  • BigDecimal.sqrt: Square root
  • BigDecimal.abs: Absolute value
  • BigDecimal.max: Returns the greater of two values
  • BigDecimal.min: Returns the lesser of two values
  • BigDecimal.ceil: Round up
  • BigDecimal.floor: Round down
  • BigDecimal.round: Round to nearest integer

Example:

log.info(Math.sqrt(16)) // Square root
log.info(Math.abs(-1)) // Absolute value
log.info(Math.max(10,16)) // Returns the greater of two values
log.info(Math.min(10,16)) // Returns the lesser of two values
log.info(Math.ceil(7.5 as double)) // Round up
log.info(Math.floor(7.9 as double)) // Round down
log.info(Math.round(7.5 as double)) // Round to nearest integer
Data Type Introduction
CollectionUtils Type

← Data Type Introduction CollectionUtils Type→

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式