setup the COleCurrency format
-
i really need this; i want to setup the Format of a COleCurrency. if the number is (for example) "189.728149" the hole number will be copied to a string wenn formatting it to a string. How can i change this, so after formating the number i will only have 2 decimals("189.73"). ofcourse it also has to go the other way: "189.7" ==> "189.70" thanks in advanced.. []D [] []D []
-
i really need this; i want to setup the Format of a COleCurrency. if the number is (for example) "189.728149" the hole number will be copied to a string wenn formatting it to a string. How can i change this, so after formating the number i will only have 2 decimals("189.73"). ofcourse it also has to go the other way: "189.7" ==> "189.70" thanks in advanced.. []D [] []D []
-
i really need this; i want to setup the Format of a COleCurrency. if the number is (for example) "189.728149" the hole number will be copied to a string wenn formatting it to a string. How can i change this, so after formating the number i will only have 2 decimals("189.73"). ofcourse it also has to go the other way: "189.7" ==> "189.70" thanks in advanced.. []D [] []D []
-
where do i get nNumber? i only have the COleCurrency, the only conversion that is possible is COleCurrency => CString(or do i get this wrong) []D [] []D []
-
I haven't used COleCurrency, just COleTime.. if it only returns a string you could do a float nNumber = atof(string).. this would produce the number nNumber.. then you could format this number as i posted before.. Hope this helps.. Rob
thnx.... i already found another solution