File Coverage

lib/Spreadsheet/Engine/Function/RADIANS.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Spreadsheet::Engine::Function::RADIANS;
2              
3 28     28   174 use strict;
  28         59  
  28         941  
4 28     28   141 use warnings;
  28         52  
  28         699  
5              
6 28     28   142 use base 'Spreadsheet::Engine::Fn::math';
  28         57  
  28         3381  
7              
8             sub calculate {
9 2     2 1 64 my ($self, $value) = @_;
10 2         51 return $value * $self->PI / 180;
11             }
12              
13             1;
14              
15             __END__