79541628

Date: 2025-03-28 14:04:22
Score: 0.5
Natty:
Report link
    my $number=12.2342342342;
    my $floatDecimal=2;
    if ($number=~/(\d{1,99})\.(\d{1,99})/){
      my $sTun=substr($2, 0, $floatDecimal);
      $number=$1.".".$sTun;
      print "Number:".$number;
    }
    #Number:12.23
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Babbo Natale