Help for this page

Select Code to Download


  1. or download this
    sub decode {
      my ($record, $nt, $val_missing) = @_;
      my $template = ('A5' x $nt) . ('A2' x $nt);
      my @values = unpack($template, $record);
      my @fractions = @values[0 .. $nt-1];
      my @exponents = @values[$nt .. $#values];
    
  2. or download this
      @values = ();
      for (my $i = 0; $i < @fractions; $i++) {
        if ( == 0 and $exponents[$i] == 99) {
    ...
      }
      return @values;
    }