Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hello,
Apologize as this might be a simple question. I'm trying to format numbers in Edit Script so that float numbers is converted to Integer. Which function does this trick?
Your help is much appreciated!
 
					
				
		
 
					
				
		
Round( value)
Ceil ( value)
Floor( value)
 
					
				
		
 swuehl
		
			swuehl
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		If you only want to format the field, but keep the floating point number internally, use
...
num(FIELD,'0') as FIELD,
...
If you want to keep only the integer part, use
..
floor(FIELD) as FIELD,
...
to truncate to integer
or
...
round(FIELD,1) as FIELD
...
for a rounded integer.
Hope this helps,
Stefan
