Difference between revisions of "LlFloor/ru"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function |func=llFloor |func_id=9|func_sleep=0.0|func_energy=10.0 |func_footnote |p1_type=float|p1_name=val|p1_desc=Any valid float value |return_type=integer |return_text=…")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/ru
|func=llFloor
|func=llFloor
|func_id=9|func_sleep=0.0|func_energy=10.0
|func_id=9|func_sleep=0.0|func_energy=10.0
|func_footnote
|func_footnote
|p1_type=float|p1_name=val|p1_desc=Any valid float value
|p1_type=float|p1_name=val|p1_desc=Любое вещественное число
|return_type=integer
|return_type=integer
|return_text=that is the integer value of {{LSLP|val}} rounded towards negative infinity <code>(return <= {{LSLPT|val}})</code>.
|return_text=целое число, представляющее собой результат округления {{LSLP|val}} в отрицательном направлении <code>(результат <= {{LSLPT|val}})</code>.
|spec
|spec
|caveats
|caveats
Line 36: Line 36:
|also_events
|also_events
|also_articles
|also_articles
|also_functions={{LSL DefineRow||[[llRound]]|Rounds the float to an integer towards the closest integer}}
|also_functions={{LSL DefineRow||[[llRound]]|Округляет до ближайшего значения}}
{{LSL DefineRow||[[llCeil]]|Rounds the float to an integer towards positive infinity}}
{{LSL DefineRow||[[llCeil]]|Округляет значение в положительном направлении}}
|notes
|notes
|cat1=Math
|cat1=Math

Latest revision as of 01:36, 30 August 2012

Общая информация

Function: integer llFloor( float val );

Возвращает целое число, представляющее собой результат округления val в отрицательном направлении (результат <= val).

• float val Любое вещественное число

Предостережения

Примеры

<lsl>default {

  state_entry()
  {
      llSay(0,"The floor value of -4.5 is: "+(string)llFloor(-4.5) );
      //Returns "The floor value of -4.5 is: -5"
      llSay(0,"The floor value of -4.9 is: "+(string)llFloor(-4.9) );
      //Returns "The floor value of -4.9 is: -5"
      llSay(0,"The floor value of -4.1 is: "+(string)llFloor(-4.1) );
      //Returns "The floor value of -4.1 is: -5"
      llSay(0,"The floor value of 4.5 is: "+(string)llFloor(4.5) );
      //Returns "The floor value of 4.5 is: 4"
      llSay(0,"The floor value of 4.9 is: "+(string)llFloor(4.9) );
      //Returns "The floor value of 4.9 is: 4"
      llSay(0,"The floor value of 4.1 is: "+(string)llFloor(4.1) );
      //Returns "The floor value of 4.1 is: 4"
   }
}</lsl>

См. также

Функции

•  llRound Округляет до ближайшего значения
•  llCeil Округляет значение в положительном направлении

Углублённые заметки

Search JIRA for related Issues

Описания

function integer llFloor( float val );