Two Decimal Places
If you have decimal number like 2.5632145200012
and you want to extract 2.56 then you can do as follow
Dim dica as Decimal Dim dica_str as String dica_str= dica.ToString("N2")
If you have decimal number like 2.5632145200012
and you want to extract 2.56 then you can do as follow
Dim dica as Decimal Dim dica_str as String dica_str= dica.ToString("N2")
Recent Comments