Question:

You are developing an application for a client residing in Hong Kong. You need to display negative currency values by using a minus sign. Which code segment should you use?

 

A NumberFormatInfo= culture =
gcnew CultureInfo("zh-HK")::NumberFormat;
culture->CurrencyNegativePattern = 1;
return numberToPrint->ToString("C", culture); 

B NumberFormatInfo= culture =
gcnew CultureInfo("zh-HK")::NumberFormat;
culture->NumberNegativePattern = 1;
return numberToPrint->ToString("C", culture); 

C CultureInfo= culture =
gcnew CultureInfo("zh-HK");
return numberToPrint->ToString("()", culture); 

D CultureInfo= culture =
gcnew CultureInfo("zh-HK");
return numberToPrint->ToString("-(0)", culture); 

+ Answer
+ Report
Total Preview: 590

Copyright © 2024. Powered by Intellect Software Ltd