I printed typeof() of a variable, it returns 3 .what does it mean?

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

im curious about the value of this variable, i cant find it in the docs.

mob_spawn_location is a PathFollow2D node, and is a child of Path2D (as MobPath)

var mob_spawn_location = get_node("MobPath/MobSpawnLocation")
mob_spawn_location.progress_ratio = randf()
print("Type of: %s" % typeof(mob_spawn_location.rotation))
print("Value: %s\n" % mob_spawn_location.rotation)

And here are some of the outputs:

Type of: 3
Value: 0

Type of: 3
Value: -1.57079637050629

Type of: 3
Value: 1.57079637050629

I wonder what does that type 3 mean, can somebody explain it please?
thank you

:bust_in_silhouette: Reply From: zhyrin

There is a global scope enum called Variant.Type, you can check against this.