sugarlabs / convert

Sugar units conversion activity
GNU General Public License v3.0
0 stars 6 forks source link

Display conversion ratio between units #34

Open nswarup14 opened 5 years ago

nswarup14 commented 5 years ago

Fixes #27

Kindly review

Tested on Ubuntu 18.04 and Sugar v0.114

quozl commented 5 years ago

Thanks. Briefly reviewed;

Could you please return to design stage and make a response on the issue to propose what is to be displayed? You seem to have jumped design and got right into coding how you think it should be solved.

nswarup14 commented 5 years ago

@quozl Thanks for the inputs. I shall update the commit message with the all the changes I have done. Regarding the display changes, I shall do so in a new commit. Regarding the point of design, I shall comment on the issue.

chimosky commented 5 years ago

Tested 7d669a7.

When digital storage is selected, conversion ratio shown for byte as from unit and [Gigabyte, Megabyte, Petabyte, Terabyte] as to unit show [1e-09, 1e-06, 1e-15, 1e-12] respectively and this isn't user friendly. The reverse is also the case for Petabyte and Terabyte as from unit and Byte as to unit.

nswarup14 commented 5 years ago

@chimosky Thanks.

I had not noticed this earlier but yes, the result displayed is of the form [1e-09, 1e-06, 1e-15, 1e-12]. The reason for it can be in the way the converted values are formatted by the activity, before displaying.

I shall investigate this further now

quozl commented 5 years ago

Thanks. Reviewed as-at 7d669a75ec758b31ea1e3becb88c828899827a43.

Briefly tested on Ubuntu 18.04 with Sugar master branch.

drLite35 commented 5 months ago

Hi @quozl, Is there anything missing in this PR any reason not to merge it, I tested it seem to be working fine. Thanks.

quozl commented 5 months ago

Perhaps the last item in the first checklist needs doing? What do you think?

drLite35 commented 5 months ago

Yes, Last task is not done, I didn't see it. Just an observation though , while I was testing/going through activity I didn't felt the need to know about representation in whole numbers, unitary conversion works best, but that might be due to me being comfortable with decimals. But what children and student are most familiar with is the real question, so for example if we take 1 inch = 2.54 cm so like was there any idea to alternatively represent this in form of fractions or any otherway because to me it looks more approachable and easy to understand.