B2Win Suite Documentation (Under Construction)
ContactB2Data
5.2
5.2
  • B2Win Suite Documentation
  • Scripting
    • B2Win Suite Scripting Overview
    • Scripting in B2Data
      • Custom Script Nodes
        • Custom Script
        • Source Script Node (File)
        • Source Script Node (Table)
        • Source Script Node (Object)
        • If-Else Condition
        • Condition Node
      • In DataPrep
      • Properties
      • Workflow Applications
        • Workflow #1
        • Workflow #2
    • Getting Started
    • Language Basics
    • Data Types and Data Structures
      • Primitive Data Types
      • Data Structures
      • SuiteTable
      • Row, Column, StringColumn
    • Non-static Classes
      • Instant Class
      • LocalDateTime
      • LocalDate
      • LocalTime
      • JsonNode Class
      • File Class
    • Static Classes
      • Duration Class
      • Math Class
      • StrictMath Class
      • InstantUtil
      • NumericUtil
      • GeneralDateUtil
      • LocalDateTimeUtil
      • LocalDateUtil
      • LocalTimeUtil
      • DbUtil
      • StateUtil
      • FileUtil
      • JsonUtil
      • HttpUtil
      • NodeInputReader
      • RandomUtil
    • Property Class
    • Context and System
      • Context Class
      • System Class
    • Logging and Configuration
      • Logging
      • Configuration
    • Tutorial
    • Feedback
Powered by GitBook
On this page

Was this helpful?

  1. Scripting
  2. Static Classes

StrictMath Class

The StrictMathClass is a subset of the Math Class that focuses on providing highly precise mathematical functions. It includes methods for calculating trigonometric functions like sine, cosine, and tangent, as well as their inverse functions like arcsine and arccosine. StrictMath is ideal for situations where accuracy is of utmost importance, ensuring reliable and consistent mathematical calculations.

Methods

StrictMath.sin(a: Double): Double-Calculates the sine of the argument a.

var angleInRadians = 1.0; // Angle in radians
var sineValue = StrictMath.sin(angleInRadians);
// sineValue is now approximately 0.8414709848078965

StrictMath.cos(a: Double): Double- Calculates the cosine of the argument a.

var angleInRadians = 1.0; // Angle in radians
var cosineValue = StrictMath.cos(angleInRadians);
// cosineValue is now approximately 0.5403023058681398

StrictMath.tan(a: Double): Double-Calculates the tangent of the argument a.

var angleInRadians = 1.0; // Angle in radians
var tangentValue = StrictMath.tan(angleInRadians);
// tangentValue is now approximately 1.5574077246549023

StrictMath.asin(a: Double): Double-Calculates the arcsine of the argument a.

var sineValue = 0.8414709848078965; // Sine value 
var arcsineValue = StrictMath.asin(sineValue);
// arcsineValue is now approximately 1.0 (in radians)

StrictMath.acos(a: Double): Double-Calculates the arccosine of the argument a.

var cosineValue = 0.5403023058681398; // Cosine value 
var arccosineValue = StrictMath.acos(cosineValue);
// arccosineValue is now approximately 1.0 (in radians)
PreviousMath ClassNextInstantUtil

Was this helpful?