Results 1 to 5 of 5

Thread: How to disable min/max limit of TFloatSpinEdit?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    The maxvalue seemed to be hardcoded in so only way i can think of, is setting the maxvalue as high as double can represent. That is roughly +/- 10^1023
    I don't know double format encoding so simply double($FFFFFFFFFFFFFFFF) will only result in 0 and power(10,1023) will give error... so what worked is:
    Code:
    uses math
    
    FloatSpinEdit1.MaxValue:=power(10,300);
    edit: ^300 is still far from maximum. You can optimize it with multiplications or other things. Still its propably more than any normal use would need.

    edit2: in theory double($7FFFFFFFFFFFFFFF) might be highest if i assume its positive without flag bit Problem is floattostr and format are only capable to show 3 exponents so its only showing 18, i guess it actually is at the max.
    http://en.wikipedia.org/wiki/Double_...g-point_format
    Last edited by User137; 13-04-2011 at 10:16 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •