wpf - Need a label to output a number. C# -
i trying have label output monthly rate after has been calculated through formula. keep getting error when try output number.
double top = _principal * _interestrate / 1200.00; double bottom =( 1 - math.pow(1.0 + _interestrate / 1200.0, -12.0 _numberofyears)); double _monthlyrate = top / bottom; lblmonthlyrate = _monthlyrate ("c");
thanks help!
lblmonthlyrate = _monthlyrate ("c");
should (this windows forms):
lblmonthlyrate.text = _monthlyrate.tostring("c");
edit per update answer:
did lose reference system.web.ui.webcontrols?
edit 2:
i'm dummy. wpf? need (this wpf):
lblmonthlyrate.content = _montlyrate.tostring("c");
Comments
Post a Comment