Using the Number Data Type (Doing Math in Lua) || Lua Tutorial #5

preview_player
Показать описание
One of the 8 Data Types available in Lua, the Number Data Type is how you can represent numerical data and perform mathematical operations. Doing math in Lua is easy and we'll go over everything you need to know about the Number Data type in this video.

We'll discuss the order of operations, or operator precedence, and how it can affect the outcome of the statements you write. Last, we'll discuss the two subtypes of the Number data type, integer and float, and how they were added to Lua in version 5.3.

Рекомендации по теме
Комментарии
Автор

I really hope you’re gonna continue with your course i thought I finally found an awesome, short video to learn Lua until I came to this video and realised you didn’t continue your series for 2 years :(

sundaecones
Автор

This course was great please make more

sodiumchloride
Автор

What happened with the next videos??? This course was great :(

slash
Автор

Great tutorial.Waiting for next videos.Make soon please and with more examples and practicals 😇😇

md.rakibuddinasim
Автор

Yes, thank you! I thought it might be the (), but that didn't work, so I was certain I was wrong. I guess I was right, but something else was wrong.

MaxSMoke
Автор

What about the operator "!" In "3!" = 6 ?

ShaiAllon
Автор

I can't tell if im learning how to use math in lua or just math in general

pusheenbelle
Автор

you just made it a lot more complicated for other people lol
you could've just said it prints what bonus is and amount is and whichever number they equal

px
Автор

soooo I take it we aren't gonna learn about functions then...

jalabeno
Автор

or just do print (5+5)or any other numbers

linusemil