Skip to main content

Number

The number field type in Cogfy allows you to work with numerical data. It is versatile and can be used in a wide variety of scenarios where you need to perform calculations, comparisons, or transformations with numeric values. From simple mathematical operations like finding the maximum or minimum number in a set, to more complex tasks like calculating the difference between two dates, the number field type is designed to handle diverse requirements efficiently.

Capabilities Overview

The number field type supports operations that enable you to manipulate and transform numeric data in different ways. Some key capabilities include:

  • Mathematical evaluation: You can evaluate mathematical expressions and perform arithmetic operations on numbers, such as extracting square roots or parsing floating-point and integer values from text.

  • Statistical operations: The number field allows you to find the maximum and minimum values in a set of numbers, useful for data analysis tasks.

  • Unit conversions: Operations like date differences allow you to calculate the difference between two dates in various units, such as milliseconds, seconds, minutes, or days.

  • Random number generation: You can generate random numbers, with customizable range and options for integers only, useful for scenarios like simulations or random selections.

  • Data extraction: Some operations allow you to extract numeric data from different sources, such as calculating the duration of an audio file or querying a database for numeric values.

The number field type is ideal for any application where numbers need to be processed, whether it’s for performing calculations, gathering statistical insights, or interacting with other data types that require numerical handling.

In the example below, a number has been used to store the text field lenght.