i want to match two float number but unable check below:

<https://jsfiddle.net/mcsab3aa/2/>

js code:

```
$('#checkButton').click(function() { 
    var getusertarget = parseFloat(jQuery("#targetval").val());
    var currentval = $("#demo").find( "h1" ).html();
    currentval = parseFloat(currentval.replace('$',''));
    console.log(currentval);
    console.log(getusertarget);
    var dividerval = (currentval/targetval);  // it should be 1
    console.log(dividerval);
    if (dividerval==1) {
        $('.coins_drags').hide();
        //$("#demo").find( "h1" ).html('$' + sum.toFixed(2) + '<br />Great job');
        console.log('great');
 }
    else { 
        //$("#demo").find( "h1" ).html('$' + sum.toFixed(2) + '<br />Try again');
        //sum = 0;
        console.log('try');
    }   

});

```