If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Float scientific notation
12 posts
• Page 1 of 2 • 1, 2
Float scientific notation
Hello All,
I have tried so many different ways to make this work, but anytime you reach a 7 digit number(1,000,000=1e-006) the float value box will convert it to scientific notation. I want to display the actual number visually through DSP and not ruby. Thanks
QUADBIT
I have tried so many different ways to make this work, but anytime you reach a 7 digit number(1,000,000=1e-006) the float value box will convert it to scientific notation. I want to display the actual number visually through DSP and not ruby. Thanks
QUADBIT
-
pshannon - Posts: 144
- Joined: Fri Jan 02, 2015 3:08 am
Re: Float scientific notation
Hello All,
Not trying to come across rude here, but I figured my previous post would be common knowledge to the the support staff or some veterans of the software. No one knows how to display large floating point numbers without using scientific notation? Even if the reply states that it is a limitation of the Float value display, but I am really disappointed by the lack of the support here with the DSP robotics team that is supposed to be checking the forum everyday.
It really appears the forums are dying compared to when I first bought the software 2 years ago. I am just getting back into the scene with it and I was diving into some new possibilities with the software.
Regards,
QuadBIT
Not trying to come across rude here, but I figured my previous post would be common knowledge to the the support staff or some veterans of the software. No one knows how to display large floating point numbers without using scientific notation? Even if the reply states that it is a limitation of the Float value display, but I am really disappointed by the lack of the support here with the DSP robotics team that is supposed to be checking the forum everyday.
It really appears the forums are dying compared to when I first bought the software 2 years ago. I am just getting back into the scene with it and I was diving into some new possibilities with the software.
Regards,
QuadBIT
-
pshannon - Posts: 144
- Joined: Fri Jan 02, 2015 3:08 am
Re: Float scientific notation
Hi
I see the original post has been viewed 31 times at the moment. So you aren't being ignored. Personally I don't know but I bet someone does. I would like to see this answered too because something in my poor old brain shuts down when I see scientific notation
Cheers
Spogg
I see the original post has been viewed 31 times at the moment. So you aren't being ignored. Personally I don't know but I bet someone does. I would like to see this answered too because something in my poor old brain shuts down when I see scientific notation
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Float scientific notation
You can do this but frankly I would recommend Ruby. The Format String module is very picky about the format input: FS will crash on invalid specifier strings!
- Attachments
-
- undoSciNotation.png (12.87 KiB) Viewed 49581 times
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Float scientific notation
pshannon wrote:Hello All,
Not trying to come across rude here, but I figured my previous post would be common knowledge to the the support staff or some veterans of the software. No one knows how to display large floating point numbers without using scientific notation? Even if the reply states that it is a limitation of the Float value display, but I am really disappointed by the lack of the support here with the DSP robotics team that is supposed to be checking the forum everyday.
It really appears the forums are dying compared to when I first bought the software 2 years ago. I am just getting back into the scene with it and I was diving into some new possibilities with the software.
Regards,
QuadBIT
To be honest, it's your own fault. I'm a Ruby guy, so when I read you don't want to use Ruby, I didn't answer. Other than that, we all know that we only can help each other. I never saw the DSP team answering any question.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Float scientific notation
Spogg wrote:I would like to see this answered too because something in my poor old brain shuts down when I see scientific notation
But it isn't as scary as it might seem. Just ignore the "e" and look at the numbering. In this case it says +6 which you should interpret as a simple instruction: Move the dot 6 digits to the right. If it says -6 it's the other direction: Move the dot six digits to the left. Nothing more.
1000000000000000
1e+15
Which of the two is easier to identify? I wouldn't want to count the zeroes In this case the scientific notation literally means: A 'one' with 15 'zeroes'.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Float scientific notation
tulamide wrote:Spogg wrote:I would like to see this answered too because something in my poor old brain shuts down when I see scientific notation
But it isn't as scary as it might seem. Just ignore the "e" and look at the numbering. In this case it says +6 which you should interpret as a simple instruction: Move the dot 6 digits to the right. If it says -6 it's the other direction: Move the dot six digits to the left. Nothing more.
1000000000000000
1e+15
Which of the two is easier to identify? I wouldn't want to count the zeroes In this case the scientific notation literally means: A 'one' with 15 'zeroes'.
Hey that's a good explanation tulamide, thanks
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Float scientific notation
Thanks for the replies, however, I have coded in many languages over the past 35 years and I assumed it was more of a setting to display a much much larger number. With today's memory, cpu and 32-64 bit processing, was it too much to ask or assume that it could do this without conversions? I can try to learn Ruby, but I was just thinking I have to learn yet another language. I was recently brushing back up on my ASM skills and I am not really fond of interpreted coding. I like speed. So now I know it is error prone to use the DSP module to convert this, what do you ruby guys have in mind for displaying the same thing? I assume a float value to string?
Thanks,
QuadBIT
Thanks,
QuadBIT
-
pshannon - Posts: 144
- Joined: Fri Jan 02, 2015 3:08 am
Re: Float scientific notation
Here is my ruby simple code. It comes out with a strange error during the conversion.
The integer box does not covert the 9 digit number as you can see, but the next steps are different values. I tried to keep it simple with 123456789, but it converted to 123456792. Some thoughts? Thanks
The integer box does not covert the 9 digit number as you can see, but the next steps are different values. I tried to keep it simple with 123456789, but it converted to 123456792. Some thoughts? Thanks
- Attachments
-
- float to string ruby error2.jpg (35.77 KiB) Viewed 49562 times
-
pshannon - Posts: 144
- Joined: Fri Jan 02, 2015 3:08 am
Re: Float scientific notation
Not all integers that are representable in a 32bit int are also representable in a 32bit float.
Ints smaller than or equal to 2^24 (16.777.216) are all guaranteed to roundtrip through a float, ints bigger than that (like 123456789) might get rounded to the closest float.
Ints smaller than or equal to 2^24 (16.777.216) are all guaranteed to roundtrip through a float, ints bigger than that (like 123456789) might get rounded to the closest float.
- TheOm
- Posts: 103
- Joined: Tue Jan 28, 2014 7:35 pm
- Location: Germany
12 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 36 guests