Page 5 of 6

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

PostPosted: Wed Jan 27, 2016 5:34 pm
by tulamide
And here's a Ruby version.

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

PostPosted: Wed Jan 27, 2016 6:30 pm
by Spogg
:lol:

So many ways to skin a cat!

But which one is best?

Cheers

Spogg

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

PostPosted: Wed Jan 27, 2016 7:05 pm
by Spogg
Here's a DSP version which can handle streams to make stepped waves...

ASM next, optimised...?

Cheers

Spogg

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

PostPosted: Wed Jan 27, 2016 8:19 pm
by rocknrollkat
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

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

PostPosted: Wed Jan 27, 2016 8:31 pm
by tulamide
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

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

PostPosted: Wed Jan 27, 2016 9:39 pm
by martinvicanek
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 1111 times
Why am I wasting my time like this? :lol:

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

PostPosted: Wed Jan 27, 2016 10:20 pm
by rocknrollkat
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 ;)

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

PostPosted: Thu Jan 28, 2016 2:19 pm
by rocknrollkat
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 :)

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

PostPosted: Thu Jan 28, 2016 3:51 pm
by tulamide
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.

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

PostPosted: Thu Jan 28, 2016 5:21 pm
by rocknrollkat
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