Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if variable is of type decimal.Decimal python

from decimal import Decimal
#any decmail would work. Probably a more eloquent way but this works
if type(r) == type(Decimal('3.14159')):
  #do something
 
PREVIOUS NEXT
Tagged: #check #variable #type #python
ADD COMMENT
Topic
Name
5+4 =