Support

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

For those not in the no (Tips and Tricks)

Post any examples or modules that you want to share here

Re: For those not in the no (Tips and Tricks)

Postby tulamide » Wed Jan 27, 2016 5:34 pm

And here's a Ruby version.
Attachments
Float to Decimal Place Converter [Ruby].fsm
(456 Bytes) Downloaded 1206 times
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: For those not in the no (Tips and Tricks)

Postby Spogg » Wed Jan 27, 2016 6:30 pm

:lol:

So many ways to skin a cat!

But which one is best?

Cheers

Spogg
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: For those not in the no (Tips and Tricks)

Postby Spogg » Wed Jan 27, 2016 7:05 pm

Here's a DSP version which can handle streams to make stepped waves...

ASM next, optimised...?

Cheers

Spogg
Attachments
Decimal places in DSP.fsm
(38.05 KiB) Downloaded 1187 times
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: For those not in the no (Tips and Tricks)

Postby rocknrollkat » Wed Jan 27, 2016 8:19 pm

Jan. 27, 2016
It's nice to see such interest in my little schematic !!
I was going to attempt a Ruby version, yours is really elegant, I will learn from your example.
Also the DSP and Format versions are terrific, thanks for the great input, everyone !!

Best,

ROXY :D
User avatar
rocknrollkat
 
Posts: 213
Joined: Mon Jan 04, 2016 7:04 pm
Location: Oakland Gardens, New York City, U.S.A.

Re: For those not in the no (Tips and Tricks)

Postby tulamide » Wed Jan 27, 2016 8:31 pm

Here's something you will really like (and which is very unusual). In the Ruby version you can actually enter a negative value for the decimal places.

Example:
156.49

places 2 => 156.49
places 1 => 156.5
places 0 => 156
places -1 => 160
places -2 => 200

Isn't that cool? :o
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: For those not in the no (Tips and Tricks)

Postby martinvicanek » Wed Jan 27, 2016 9:39 pm

Alright, here is an ASM rounder. It will also process a negative number of digits. However, it is prone to overflow.
ASM-Rounder.fsm
(1 KiB) Downloaded 1178 times
Why am I wasting my time like this? :lol:
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: For those not in the no (Tips and Tricks)

Postby rocknrollkat » Wed Jan 27, 2016 10:20 pm

Jan. 27, 22016
I just entered a negative number in my original version and had no problems,
the decimal places all came out negative.
Here's my original schematic again, with a negative number entered.

It's nice to see how much interest this is generating !
Keep in mind that I'm the new guy here, and I 'confuse' easily !!

ROXY ;)
Attachments
ROXY Float to Decimal Place Converter-NEGATIVE NUMBER no problem - 1-27-2016.fsm
(555 Bytes) Downloaded 1159 times
User avatar
rocknrollkat
 
Posts: 213
Joined: Mon Jan 04, 2016 7:04 pm
Location: Oakland Gardens, New York City, U.S.A.

Re: For those not in the no (Tips and Tricks)

Postby rocknrollkat » Thu Jan 28, 2016 2:19 pm

Jan. 28, 2016
Here's something I just discovered, purely by accident.
You can use readouts as summing points.
This may be old news to many of you, but for me, it's all brand new.
The first schematic adds three floats in the traditional manner.
The second schematic adds three floats using a float pane as the summing point, who knew ?
The third schematic uses a 'readout' pane to do the summing, this time you have to include the 'direct out' module to activate it.
Using Martin's CPU meter, there is no real advantage to doing it either way. but it sure helps in decluttering your schematic !

Enjoy !!

ROXY :)
Attachments
Three summing points.fsm
Add numbers three ways !!
(822 Bytes) Downloaded 1136 times
User avatar
rocknrollkat
 
Posts: 213
Joined: Mon Jan 04, 2016 7:04 pm
Location: Oakland Gardens, New York City, U.S.A.

Re: For those not in the no (Tips and Tricks)

Postby tulamide » Thu Jan 28, 2016 3:51 pm

rocknrollkat wrote:Jan. 27, 22016
I just entered a negative number in my original version and had no problems,
the decimal places all came out negative.
Here's my original schematic again, with a negative number entered.

It's nice to see how much interest this is generating !
Keep in mind that I'm the new guy here, and I 'confuse' easily !!

ROXY ;)

My tip wasn't about negative numbers, but about a negative amount of decimals.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: For those not in the no (Tips and Tricks)

Postby rocknrollkat » Thu Jan 28, 2016 5:21 pm

tulamide wrote:
rocknrollkat wrote:Jan. 27, 22016
I just entered a negative number in my original version and had no problems,
the decimal places all came out negative.
Here's my original schematic again, with a negative number entered.

It's nice to see how much interest this is generating !
Keep in mind that I'm the new guy here, and I 'confuse' easily !!

ROXY ;)

My tip wasn't about negative numbers, but about a negative amount of decimals.


tulamide, Like I said, I 'confuse' easily.
I don't 'get' negative amounts of decimals.
I'm trying to figure out how to show the proper amount of zeroes when arriving at 4.00 for example.
Flowstone ignores the zeroes, and that makes the decimal point jump, which is what I'm trying to prevent.
For example, 4.01 displays correctly, 4.00 just displays '4', no zeroes.

Best regards,

ROXY
User avatar
rocknrollkat
 
Posts: 213
Joined: Mon Jan 04, 2016 7:04 pm
Location: Oakland Gardens, New York City, U.S.A.

PreviousNext

Return to User Examples

Who is online

Users browsing this forum: Majestic-12 [Bot] and 23 guests