Difference between revisions of "Talk:Floor"

10 bytes removed ,  17:04, 18 October 2008
no edit summary
imported>DragoonWraith
(missed a space, that may have had something to do with it)
imported>DragoonWraith
Line 25: Line 25:
::But regardless, using Modulo would eliminate dependence on the particular implementation there:
::But regardless, using Modulo would eliminate dependence on the particular implementation there:
<dl><dd><dl><dd>
<dl><dd><dl><dd>
short flooredInt
short flooredInt
float decimalValue
float decimalValue
 
set decimalValue to 1.9
set decimalValue to 1.9
set flooredInt to decimalValue - ( decimalValue % 1 )
set flooredInt to decimalValue - ( decimalValue % 1 )
;; 1.9 - 0.9 = 1
;; 1.9 - 0.9 = 1
 
set decimalValue to 2.0
set decimalValue to 2.0
set flooredInt to decimalValue - ( decimalValue % 1 )
set flooredInt to decimalValue - ( decimalValue % 1 )
;; 2.0 - 0 = 2
;; 2.0 - 0 = 2
</dl></dl>
</dl></dl>
::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)