Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
There are several ways to round or repeat values, which among other things,
is useful when working with discrete and periodic textures, such as tiles.
Perhaps the most familiar of these operations is the Round function itself,
which behaves like a classic rounding operation,
simply outputting the integer closest to the input value, whether it is above or below the value.
On the other hand, the Floor operation always rounds down, to the closest integer below,
even if the integer above is closer to the input value.
And conversely, the Ceiling operation rounds up to the first integer above.
If we look at these operations on a larger range of values, it becomes clear that they
are all basically offset versions of each other. Of these operations,
Floor is probably the most common, as it has some convenient properties, that we'll see in a moment.
While the three rounding operations we looked at discard the decimal portion of the values in
one way or another, we also have operations to do the opposite. The Fraction operation is very
convenient for this. It outputs the distance to the input value from the first integer below.
That effectively discards the integer portion, and keeps the decimal,
though that is not exactly the case for negative numbers, as the Fraction operation always
counts up from the first integer below, while decimals count from the integer closest to zero.
The nice property of the Floor and Fraction operations, is that one outputs exactly what
the other discards, the integer and decimal portions of the value, respectively. So they
complement each other, and adding their outputs together always gives you back the original input.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.