[Godot 2D] Is there a function to determine the signal of a variable?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By arthurZ

Is there a function to determine the signal of a numerical variable? I mean determine if it is a plus sign or a minus sign.

Thank you.

:bust_in_silhouette: Reply From: mateusak

sign(value)

How ironic.

By the way, why [Godot 2D] on the title? All my life I thought minus and plus were adimensional… I’ve been living a lie!

mateusak | 2018-02-11 01:30