Community: Math help

Created on 17 Nov 2018  Â·  5Comments  Â·  Source: kubernetes/community

I'm trying to understand the resources readme where it shows equivalent values. There is a sentence that says:

"For example, the following represent roughly the same value: 128974848, "129e6", "129M" , "123Mi"."

Can you help me understand the 123Mi? I thought it would be 128974848 / 1024 = 126Mi instead of 123Mi? I'd like to at least update the docs so its more clear if I can.

Thanks for any clarification /sig docs

sidocs

Most helpful comment

128974848 / 1024 / 1024 = 123

All 5 comments

/sig docs

128974848 / 1024 / 1024 = 123

ah, that explains. So slowly:
128974848 bytes = 125,952 kilobytes = 123 megabytes correct?

Thank you!

Well, to be really accurate, 128,974,848 bytes = 125,952 kibibytes = 123 mebibytes

kibi = 2^10 = 1024, mebi = 2^20 = 1048576
kilo = 10^3 = 1000, mega=10^6 = 1000000

For 10^3 vs 2^10 the error is fairly small, but the discrepancy grows with every increase in the exponent, so just ignoring the distinction between powers of 2 vs powers of 10 isn’t really a good idea anywhere that accuracy matters.

--
Paul Carver
VoIP: 732-545-7377
Cell: 908-803-1656
E: [email protected]pcarver@att.com
h=6.626 070 15 × 10-34
e=1.602176634 × 10-19
k= 1.380649 × 10-23
NA=6.02214076 x 1023

From: Vallard Benincosa notifications@github.com
Sent: Saturday, November 17, 2018 10:38
To: kubernetes/community community@noreply.github.com
Cc: Subscribed subscribed@noreply.github.com
Subject: Re: [kubernetes/community] Math help (#2948)

ah, that explains. So slowly:
128974848 bytes = 125,952 kilobytes = 123 megabytes correct?

Thank you!

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_kubernetes_community_issues_2948-23issuecomment-2D439625908&d=DwMCaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=HBNonG828PGilNRNwXAtdg&m=O875bs4V4odeFrXv4PL07zHWg3d16vYxvLnCH8LdI1k&s=iLKxe1fWtIPSO9mrEYipGLiUVnI9QbMftq_3sr8hWjs&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ADjIj-2Dj99RdJ-2D38MGZJ26P7lse4KGTdkks5uwC1EgaJpZM4Ynftl&d=DwMCaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=HBNonG828PGilNRNwXAtdg&m=O875bs4V4odeFrXv4PL07zHWg3d16vYxvLnCH8LdI1k&s=SsJD66AWxu4Kyqenhkm_Tr3ycxp2Z7OmYH8AZ-SVwBk&e=.

@pcarver we have M and Mi

Was this page helpful?
0 / 5 - 0 ratings

Related issues

idealhack picture idealhack  Â·  4Comments

parispittman picture parispittman  Â·  4Comments

nikhita picture nikhita  Â·  4Comments

casusbelli picture casusbelli  Â·  4Comments

castrojo picture castrojo  Â·  3Comments