简体   繁体   中英

how to convert string field to decimal value in c# crystal report

我有一个包含某些百分比的字符串字段(例如5)。现在我将该字符串字段转换为十进制值,而不是计算总金额。因此,如何在Crystal Report公式字段中将字符串字段转换为十进制值。

Try Decimal.TryParse method.

Decimal.TryParse

See reference here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM