File Coverage

lib/Spreadsheet/Engine/Function/DEGREES.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::DEGREES;
2              
3 28     28   149 use strict;
  28         51  
  28         914  
4 28     28   148 use warnings;
  28         61  
  28         759  
5              
6 28     28   140 use base 'Spreadsheet::Engine::Fn::math';
  28         57  
  28         3629  
7              
8             sub calculate {
9 71     71 1 2269 my ($self, $value) = @_;
10 71         1776 return $value * 180 / $self->PI;
11             }
12              
13             1;
14              
15             __END__