Board index » delphi » splitting a floating point number
quent...@leaves.qjc.cjb.net (OgO)
![]() Delphi Developer |
Mon, 08 Sep 2003 14:35:17 GMT
splitting a floating point number
Hello everyone,
I'm having a problem which is being annoyingly difficult to solve, I have number: 123.456 I want to end up with: label1.caption = 123 label2.caption = .456 The reason I want to split them up like this is so I can make label1 a I tried using: label1.caption:=floattostrf(number, ffNumber,18,0); which works except label2.caption has a leading 0 which i don't want.. Can anyone suggest a simple way to solve this? Regards Ogo No Silicon Heaven? But where do all the calculators go? - Kryten. |