google sheets – compare double with integer android

I receive two strings containing either an Integer or Decimal (Double) from GoogleSheets to Android.
String 1 is requirement and the other is available.

I need to compare both and take a decision.

if requirement is greater than available do Action 1 otherwise Action 2.

Example: if requirement string is “0.5” and available is 4

Using Integer.parseinteger(String) works if both are integers.

Can someone please help