I am using a Python library called arcpy_metadata that uses 2 datatype called max_scale and min_scale that take integers:

My code for that is just:
import arcpy, arcpy_metadata as md
....
min_scale = arcpy.GetParameterAsText(5)
max_scale = arcpy.GetParameterAsText(6)
....
metadata = md.MetadataEditor(file)
...
metadata. min_scale = min_scale
metadata.max_scale = max_scale
I am trying to turn this into a Python script in ArcMap toolbox. An example input for the max and min scale would 5000 and 150000000. Since there is no integer type and I don't really need decimals, I just entered double when configuring the parameters for the tool. I also set it as ``optional`.

When I run the tool however, I keep getting the following error. What am I doing wrong here?
RuntimeWarning: Input value must be of type Integer