 | imbStringFormatsimbGetPercentage Method |
imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Vraca formatiran procenat od zadatih brojeva
Namespace:
imbSCI.Core.extensions.text
Assembly:
imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntaxpublic static string imbGetPercentage(
this int part,
int whole,
int decimals = 2,
string suffix = "% "
)
Request Example
View SourceParameters
- part
- Type: SystemInt32
Velicina dela, npr. 10 - (za whole=20, rezultat = 50.00%) - whole
- Type: SystemInt32
Velicina celine, npr. 20 - (za part=10, rezultat = 50.00%) - decimals (Optional)
- Type: SystemInt32
Na koliko decimala zaogruzuje - suffix (Optional)
- Type: SystemString
Koji sufix (simbol) dodaje
Return Value
Type:
StringSredjen rezultat u stringu
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int32. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also