mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
| func test():
 | |
| 	var some_bool = 5 as bool
 | |
| 	var some_int = 5 as int
 | |
| 	var some_float = 5 as float
 | |
| 	print(typeof(some_bool))
 | |
| 	print(typeof(some_int))
 | |
| 	print(typeof(some_float))
 | |
| 
 | |
| 	print()
 | |
| 
 | |
| 	var some_bool_typed := 5 as bool
 | |
| 	var some_int_typed := 5 as int
 | |
| 	var some_float_typed := 5 as float
 | |
| 	print(typeof(some_bool_typed))
 | |
| 	print(typeof(some_int_typed))
 | |
| 	print(typeof(some_float_typed))
 | 
