How do I to declare var double in the javascript

Get help using Construct 2

Post » Mon Nov 09, 2015 5:04 pm

Hi,
I made a property in a pluggin (javascript) , but is integer, and I wish to use dot lile 1.04, and I dont no how declare this var as float or double.

Tks.
B
3
S
1
Posts: 9
Reputation: 343

Post » Mon Nov 09, 2015 5:54 pm

If you mean properties for your plugin you can specify the type as integer or float:
https://www.scirra.com/manual/20/properties

Otherwise all numbers in javascript are double.
B
91
S
31
G
102
Posts: 5,232
Reputation: 67,250


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], ksiads and 2 guests