-
-
Notifications
You must be signed in to change notification settings - Fork 5
Tax
Taiizor edited this page Mar 1, 2023
·
4 revisions
The TaxExtension class provides extension methods for calculating taxes.
Skylark.Standard.Extension.Tax
public static STTCS Calc(string Value = MTTM.Value, string Percent = MTTM.Percent, ETT Type = MTTM.TaxType, bool Decimal = MTTM.Decimal)
Calculates taxes for the given Value
, Percent
, Type
and Decimal
values.
-
Value: A
string
representing the value for which tax is to be calculated. Default value isMTTM.Value
. -
Percent: A
string
representing the percentage value for tax. Default value isMTTM.Percent
. -
Type: An
ETT
value representing the type of tax to be calculated. Default value isMTTM.TaxType
. -
Decimal: A
bool
value indicating whether to return the tax values as decimal or not. Default value isMTTM.Decimal
.
A STTCS
object containing calculated tax values.
public static Task<STTCS> CalcAsync(string Value = MTTM.Value, string Percent = MTTM.Percent, ETT Type = MTTM.TaxType, bool Decimal = MTTM.Decimal)
Calculates taxes asynchronously for the given Value
, Percent
, Type
and Decimal
values.
-
Value: A
string
representing the value for which tax is to be calculated. Default value isMTTM.Value
. -
Percent: A
string
representing the percentage value for tax. Default value isMTTM.Percent
. -
Type: An
ETT
value representing the type of tax to be calculated. Default value isMTTM.TaxType
. -
Decimal: A
bool
value indicating whether to return the tax values as decimal or not. Default value isMTTM.Decimal
.
A Task<STTCS>
object containing calculated tax values.
- Tax
- Url
- Web
- Ping
- Port
- Text
- Time
- Hash
- Word
- Color
- Speed
- Lottery
- Storage
- Browser
- Unicode
- Password
- JavaScript
- Cryptology
- Typography
- Temperature
- Compression
- Decompression
- Cascading Style Sheets
- JavaScript Object Notation
- Hypertext Markup Language
- Extensible Markup Language
- Extensible HyperText Markup Language