Limitations in Fancade scripting: Difference between revisions

no edit summary
(→‎Number limit: Rewording)
Tags: Mobile edit Mobile web edit
No edit summary
Tags: Mobile edit Mobile web edit
Line 39: Line 39:
Similarly, if you have over 156 blocks, then you may not have 100 levels.
Similarly, if you have over 156 blocks, then you may not have 100 levels.


Also, keep in mind that.a single object encompassing multiple blocks will accumulate occupied blocks towards the limit. For instance a 2x2x1-filled block counts as 4 blocks.
Also, keep in mind that a single object encompassing multiple blocks will accumulate occupied blocks towards the limit. For instance a 2x2x1-filled block counts as 4 blocks.


== Number limit ==
== Number limit ==


The biggest number you can make is just under 2^128 which is ~3.40e38.
The biggest [[number]] you can make is just under 2^128 which is ~3.40e38.
Going higher gives <code>inf</code> instead.
Going higher gives <code>inf</code> instead.


The biggest number up to which integer precision holds, where every whole number can be represented is 2^24 or 16777216.
The biggest number up to which integer precision holds, where every whole number can be represented is 2^24 or 16,777,216.
16777217 and most whole mumbers above that are unrepresentable.
16,777,217 and most whole mumbers above that are unrepresentable.
 
== List Limit ==
 
The maximum index of a [[list]] is 1,048,575.
Going higher gives the "List too big!" error.


[[Category:Scripting]]
[[Category:Scripting]]