Adding an int and a float, assigning to a float : Float : Data Type Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Data Type » Float »

 

Adding an int and a float, assigning to a float


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){


      var n:Number = 0.1
      trace(n)//6.1 (it's a float!)
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Data Type
» Float