Home » Developing U++ » U++ Developers corner » Value with type float
Re: Value with type float [message #58293 is a reply to message #58289] |
Tue, 12 April 2022 09:26   |
Tom1
Messages: 1302 Registered: March 2007
|
Ultimate Contributor |
|
|
mirek wrote on Mon, 11 April 2022 17:52Tom1 wrote on Sat, 02 April 2022 13:31No problem... I trust you will soon come up with some astonishingly smart three line solution for the task! 
Best regards,
Tom
Nothing too smart for now, but I have added ConvertFloat and EditFloat.
The jury is still out for float in Value.... do not want to do that now. It feels like while it fixes some issues (e.g. Value->JSON conversion when the values went through float precision), there might be many caveats.
Hi Mirek,
Thanks! EditFloat works fine now. However, there are a couple of things more. First, could you add float operator to Value for easy reading of EditFloat:
operator float() const { return Is(DOUBLE_V) ? (float)GetSmallRaw<double>() : (float)GetOtherDouble(); }
Second, can you add EditFloatSpin and EditFloatNotNullSpin variants?:
typedef WithSpin<float, EditFloat> EditFloatSpin;
typedef WithSpin<float, EditFloatNotNull> EditFloatNotNullSpin;
// And then some magic to make those two working and visible in layout editor.
Thanks and best regards,
Tom
|
|
|
 |
|
Value with type float
|
 |
|
Re: Value with type float
By: mirek on Sat, 19 March 2022 10:38
|
 |
|
Re: Value with type float
|
 |
|
Re: Value with type float
By: Tom1 on Thu, 31 March 2022 13:49
|
 |
|
Re: Value with type float
By: Tom1 on Thu, 31 March 2022 15:14
|
 |
|
Re: Value with type float
By: mirek on Fri, 01 April 2022 11:07
|
 |
|
Re: Value with type float
By: Tom1 on Fri, 01 April 2022 11:13
|
 |
|
Re: Value with type float
By: Tom1 on Fri, 01 April 2022 12:06
|
 |
|
Re: Value with type float
By: Tom1 on Fri, 01 April 2022 14:03
|
 |
|
Re: Value with type float
By: Tom1 on Fri, 01 April 2022 15:26
|
 |
|
Re: Value with type float
By: mirek on Sat, 02 April 2022 01:31
|
 |
|
Re: Value with type float
By: mirek on Sat, 02 April 2022 01:31
|
 |
|
Re: Value with type float
By: mirek on Sat, 02 April 2022 09:43
|
 |
|
Re: Value with type float
By: Tom1 on Sat, 02 April 2022 10:55
|
 |
|
Re: Value with type float
By: mirek on Sat, 02 April 2022 11:26
|
 |
|
Re: Value with type float
By: Tom1 on Sat, 02 April 2022 13:31
|
 |
|
Re: Value with type float
By: mirek on Mon, 11 April 2022 16:52
|
 |
|
Re: Value with type float
By: Tom1 on Tue, 12 April 2022 09:26
|
 |
|
Re: Value with type float
By: mirek on Tue, 12 April 2022 13:40
|
 |
|
Re: Value with type float
By: Tom1 on Tue, 12 April 2022 13:54
|
 |
|
Re: Value with type float
By: Tom1 on Tue, 10 May 2022 13:21
|
 |
|
Re: Value with type float
By: mirek on Tue, 10 May 2022 15:44
|
 |
|
Re: Value with type float
By: Tom1 on Tue, 10 May 2022 20:08
|
 |
|
Re: Value with type float
By: mirek on Tue, 10 May 2022 21:26
|
 |
|
Re: Value with type float
By: Tom1 on Wed, 11 May 2022 08:20
|
 |
|
Re: Value with type float
By: mirek on Fri, 03 June 2022 10:52
|
 |
|
Re: Value with type float
By: Tom1 on Fri, 03 June 2022 12:03
|
 |
|
Re: Value with type float
By: mirek on Wed, 04 October 2023 09:55
|
 |
|
Re: Value with type float
By: Tom1 on Wed, 04 October 2023 12:08
|
 |
|
Re: Value with type float
By: mirek on Fri, 06 October 2023 12:51
|
 |
|
Re: Value with type float
By: Tom1 on Fri, 06 October 2023 13:40
|
 |
|
Re: Value with type float
By: mirek on Fri, 06 October 2023 13:54
|
 |
|
Re: Value with type float
By: Tom1 on Fri, 06 October 2023 14:28
|
 |
|
Re: Value with type float
By: mirek on Mon, 30 October 2023 10:34
|
 |
|
Re: Value with type float
By: Tom1 on Mon, 30 October 2023 12:27
|
 |
|
Re: Value with type float
By: mirek on Mon, 30 October 2023 13:37
|
 |
|
Re: Value with type float
By: mirek on Fri, 01 April 2022 11:03
|
 |
|
Re: Value with type float
By: jimlef on Tue, 06 September 2022 01:41
|
 |
|
Re: Value with type float
By: Oblivion on Tue, 06 September 2022 22:42
|
 |
|
Re: Value with type float
By: jimlef on Thu, 08 September 2022 14:49
|
Goto Forum:
Current Time: Thu May 01 01:28:27 CEST 2025
Total time taken to generate the page: 0.01189 seconds
|