Difference between revisions of "Talk:Floor"
Jump to navigation
Jump to search
no edit summary
imported>DragoonWraith |
imported>DragoonWraith |
||
Line 24: | Line 24: | ||
::But regardless, using Modulo would eliminate dependence on the particular implementation there: | ::But regardless, using Modulo would eliminate dependence on the particular implementation there: | ||
{{IndentPre|2| | |||
short flooredInt | |||
float decimalValue | |||
set decimalValue to 1.9 | |||
set flooredInt to decimalValue - ( decimalValue % 1 ) | |||
;; 1.9 - 0.9 = 1 | |||
- | |||
- | set decimalValue to 2.0 | ||
set flooredInt to decimalValue - ( decimalValue % 1 ) | |||
;; 2.0 - 0 = 2 | |||
}} | |||
- | |||
::That template is '''awesome''', Qazaaq, by the way. | ::That template is '''awesome''', Qazaaq, by the way. | ||
::[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 17:41, 18 October 2008 (EDT) | ::[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 17:41, 18 October 2008 (EDT) |