Liz Anaya Ramos
·Developer Community Manager @ Xano

Calculate Absolute Value - Challenge #25


Objective: Create a decimal variable and compute its absolute value.

Instructions:

  1. Define the Variable:

    • Create a variable named decimal_value and assign it the value -12.5.

  2. Compute the Absolute Value:

    • Apply a filter to decimal_value to calculate its absolute value, effectively transforming -12.5 into 12.5.

  3. Submit your result contained in the variable decimal_value.

Expected Result:

Submit the variable decimal_value as your answer. See example below:


Install the snippet to get started: https://www.xano.com/snippet/XwN5GThx