Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Tutorials
#1

Send/Receive Analogue Rounding

Archive: 1 post


This is a tutorial on rounding numbers (just the general concept) with addable and shift-able digits like a probe

First lets get the criteria out of the way
What must exist in order to make this work modularly?

1) We need to account for which digit you want to round
a) In this case, it should be the last digit you input
a1) so what you must do is connect any upcoming modular "hints" to the previous modular chips to let the logic know that it is the last chip, and to round

2) Install the actual logic in the end chip
a) To do this, you just make it so when it detects anything equal to above 50% of the criteria in the chip, then make it add 1 to the previous chip

3) Now in the previous chip there might be a problem when adding one, and that would be if it was at 90% or above, and you add "1", so what are some possible situations in which this could occur, and how to fix them
a) What if the next one is 9 also?
a1) Wait for instructions to see if it should change from a 9 to a 0, or if it should stay at a 9 in the event of an overflow, which might be more costly thermo-wise, but could be easier, visual-wise, and it could be more compact if used for aestetics or compact design
a2) It disregards this information, but if it overflows past the first digit, then a separate overflow indicator is displayed, to indicate that it has overflown
a2 EX) 99 rounds to 00 *OVERFLOW* (assuming that the highest digit is 99, not 099)

4) Now just either display it like a probe which requires little effort, or impliment a place value detection protocal with multiplication and counters set to 1/10 for every digit, then add up the results of all of the chips
4 EX) 95% set to a base of 10% (so 95% = traditional 95%, not 950% or 9.5%) it would detect 9 then 5, and apply 90% then it would do 50% * .1, and add up the results to get 95%

This way you can have modular rounding, with no higher or lower set limit, like a probe (although there is a lot of new protocol that must be added in to account for place value) Hope the LBP community finds a use for this (and sorry if this doesn't make sense to anybody in the community, just ask me where to clarify, because this all made sense in my head and when I read it, but then again, I don't know what all of you do and don't know, so feel free to ask, and I will promptly reply)
2014-05-20 06:12:00

Author:
amiel445566
Posts: 664


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.