Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,14 +0,0 @@
|
|||
function Get-DigitalSum ([string] $number, $base = 10)
|
||||
{
|
||||
if ($number.ToCharArray().Length -le 1) { [Convert]::ToInt32($number, $base) }
|
||||
else
|
||||
{
|
||||
$result = 0
|
||||
foreach ($character in $number.ToCharArray())
|
||||
{
|
||||
$digit = [Convert]::ToInt32(([string]$character), $base)
|
||||
$result += $digit
|
||||
}
|
||||
return $result
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue