Numbers are notated with the most significant digits first (big-endian). For example, Player.UserId is an int64, and MarketplaceService:PromptPurchase() and TeleportService:Teleport() each expect int64 for the ID arguments. This type of integer is common for methods that use ID numbers from the Roblox website. Doing local io require’io’ will ensure you that you get the table from, even if G.io has been replaced by another table. The int64 number type refers to a signed 64-bit integer, which ranges from -2 63 to 2 63 - 1. The reason for this is that it prevents your library from calling globals which have been altered after the library was loaded. Properties and functions that expect integers may automatically round or raise errors when you assign or pass non-integers to them. The integer number type, or int, refers to a 32-bit whole number, which ranges from -2 31 to 2 31 - 1. In computer science terms, they are single-precision (32-bit) floating-point number, which isn't as precise as double-precision floating-point numbers, but is sufficiently precise for most use cases and requires less memory and storage. The float number type refers to a real number with a decimal place. Luau doesn't distinguish between integers and numbers, but the API reference sometimes distinguishes between them to be more specific about how to use each API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |