what´s the biggest number data type?

So yeah, after a chat today on irc i wondered which number data types there are in unity C# and JS and which can hold the biggest number values.
Funny, up to now when coding JS and C# in unity i haven´t used much else than int and float :slight_smile:

System.Double and System.Int64.

–Eric

cool,thanks :slight_smile:

ok, cool on the C# side but how to use those in JS?
Also where can i look up that type of thing in the docs?

var myDouble : System.Double;
var myInt64 : System.Int64;

thanks,AngryAnt.
Diederich: I´ve already been to that site once, but it only lists the basic types and also doesn´t list the types available in unity js and i´d like a listing for the unity/ mono specific stuff.

It’s the same thing.

You can’t, at least not the Unity docs. :wink: Actually I got this from a post quite a long time ago, don’t feel like searching so here it is again:

The only difference is that C# uses “bool” and Javascript uses “boolean”.

–Eric

Yeah, i wondered when not finding any docu :slight_smile:

cool, thanks :slight_smile: