<?php

namespace Shm\ShmPayment\TBankPayment;

class TBankAmount
{
    public static function toKopecks($rubles): int
    {
        return (int) round((float) $rubles * 100);
    }

    public static function toRubles($kopecks): float
    {
        return ((int) round((float) $kopecks)) / 100;
    }
}
