Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

log10

log10

The log10 function in XQuery returns the base-ten logarithm of the argument.

Syntax

math:log10(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Required
The positive numeric value to compute the base-10 logarithm of.

Return Value

  • Returns the base-10 logarithm of the input value.
  • Returns an empty sequence if the input is an empty sequence.
  • Returns an error or empty sequence for values less than or equal to zero, as logarithm is undefined for these.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
math:log10(1)
0
math:log10(10)
1
math:log10(100)
2
math:log10(-5)
Error or empty sequence
math:log10(())
()

Additional information

  • The input value must be positive.
  • The function returns a numeric value representing the base-10 logarithm.
  • It gracefully handles empty input by returning an empty sequence.

0 COMMENTS

We’d like to hear from you!