When comparing primitive datatypes, ActionScript compares them by value
package{ import flash.display.Sprite;
public class Main extends Sprite{ public function Main(){ var quantity:Number = 6; var total:Number = 6; trace (quantity == total); // Displays: true } } }