Home > VB > Dim the Math™

Dim the Math™


BC Coat of Arms

The Battle of the 'Binaries' V the 'Decimals'

Dim the Math™

;where binary="BaseTwo" and decimal="BaseTen"

Key: How many iterations of each descending power of ‘The Base’ or ‘El quaida’ does your instant value hold?

For example, in “base ten” the ‘intValue=316′ represents three iterations of the ‘ten to the two power’ (300), one iteration of the ‘ten to the first power’ (10) and six iterations of the ‘ten to the zero power’ (6) for a distinct “base ten” value expressed in the serial accumulation of the number of iterations of each subsequent descending power of the base after deciphering what maximum power of the base expressed in the maximum of all base-digits (0 through 9) your value can indeed hold without spilling over the brim of the value.

The same value expressed in “base two” returns one iteration of the ‘two to the eigth power’ (256), zero iterations of the ‘two to the seventh power’ (0), zero iterations of the two to the sixth power (0), one iteration of the ‘two to the fifth power’ (32), one iteration of the ‘two to the forth power’ (16), one iteration of the ‘two to the third power’ (8), one iteration of the ‘two to the second power’ (4), zero iterations of the ‘two to the first power’ (0) and zero iterations of the ‘two to the zero power’ (0) for a distinct “base two” value expressed in the serial accumulation of the zero ‘false(s)’ or the one ‘true(s)’ of each subsequent descending power of the base after deciphering what maximum power of the base expressed in the maximum of all base-digits (0 through 1) your value can indeed hold without spilling over the brim of the value.

Therefore, the base ten value “3″ “1″ “6″ corresponds to the base two value of “1″ “0″ “0″ “1″ “1″ “1″ “1″ “0″ “0″

CON_CAT_E_NATION

Dim the Math™

Key: The art of combining one or more ‘Dim strData As String’ with an ‘ampersand’ (&)


Dim strOne As String
Dim strTwo As String
Dim strResults As String
  strResults = strOne & strTwo
  MessageBox.Show("Results" & strResults, "Concatenation")

INLINE CON_CAT_E_NATION

Dim the Math™

Key: The art of combining a ‘Dim strLiteral As String’ and the ‘serial accumulation’ of a base “X” numeral ‘As Integer’ with an ‘ampersand’ (&)


Dim intVar As Integer
  intVar=101
  MessageBox.Show("This is a string literal plus an Integer" _
  & intVar, "Concatenate Inline")

MATHEMATICAL OPERATIONS

Dim the Math™

Key: Here are example ways both ‘long’ and ‘short’ to express mathematical operations in Visual Basic ( VB )

Addition


Dim intVariable As Integer
  intVariable=16
  intVariable=intVariable+8
  intVar+=8

Subtraction


Dim intVariable As Integer
  intVariable=11
  intVariable=intVariable-2
  intVar-=2

Multiplication


Dim snglVariable As Single
  snglVariable=10
  snglVariable=snglVariable*3
  snglVar*=3

Division


Dim dblVariable As Double
  dblVariable=1024
  dblVariable-dblVariable/5
  dblVar/=5
;where 'Dim intVariable As Integer' =
<intVariable prefix="int" type="integer"
verbosity="whole_number" />
;where 'Dim snglVariable As Single' =
<snglPrecision prefix="sngl" type="single"
verbosity="single_precision_floating_point_number_
accuracy_one_penny_330000" />
;where 'Dim dblVariable As Double' =
<dblPrecision prefix="dbl" type="double"
verbosity="double_precision_floating_point_number_
accuracy_one_penny_forty_five_trillion" />

BONUS QUESTION AND ANSWER

Pregunta: ¿
Why is a ‘byte’ expressed in terms of kb=”1024″ rather than a more human sounding and rounded-off kb=”1000″?

Respuesta: Porque un
‘byte’ measures exactly an eight ‘bit’ array of computer memory set aside for the computer to ‘switch’ each of the respective eight ‘cells’ or ‘bits’ on (1=true) or off (0=false).

Following the ‘boolean’ logic of this trick, the computer prefers ALL info and data to be ultimately processed using the base two numeral system.

Hence the value ‘kilobyte’ kb=”1024″, a representation of a thousand bytes of information or data, is actually an iteration of one instance of ‘two to the 10th power’, zero instances of ‘two to the ninth power’, zero instances of ‘two to the eighth power’, zero instances of ‘two to the seventh power’, zero instances of ‘two to the sixth power’, zero instances of ‘two to the fifth power’, zero instances of ‘two to the forth power’, zero instances of ‘two to the third power’, zero instances of ‘two to the second power’, zero instances of ‘two to the first power’ and zero instances of ‘two to the zero power’ or “1″ “0″ “0″ “0″ “0″ “0″ “0″ “0″ “0″ “0″ “0″.

And, finally for our really ‘expansive’ minded students out there in TV land who think grand thoughts about the cosmos and consider ‘steps’ to be in terms of ‘tens of light-years’ in height, we also have ‘megabytes’ or MB=”one instance of ‘two to the twentieth power’, et al” and ‘gigabytes’ or GB=”one instance of ‘two to the thirtieth power’, et al” and ‘terabytes’ or TB=”one instance of ‘two to the fortieth power’, et al” and ‘petabytes’ or PB=”one instance of ‘two to the fiftieth power’, et al”

NOTE
: A computer stores all ‘integer’ type variables in a respective standard ’32-bit’ or ’4-byte’ slot of memory storage.
It is therefore ok to release such memory slots in your program when you are done using the ‘integer’ and you may ‘overwrite’ the memory slot with a new ‘integer’ type variable as your program flows and all past values are no longer needed or used.

However, to ‘Dim’ a five digit numeral ‘As string’, for example, requires unicode mapping equal to “16-bits’ or ’2-byte’ per character, which corresponds to a less efficient ’80-bit’ or ’10-byte’ memory slot for a five-character (digit) value ‘As String’

On the other hand, ‘single-precision’ floating point numerals ‘As Single’ do take up the same amount of space ’32-bit’ ‘As Integer’, or ’4-byte’ whereas ‘double-precision’ floating point numerals ‘As Double’ take up ‘double’ the memory space ’64-bit’ or ’8-byte’ as the type of the numeral implies.

Next up…You call a method, and pass on a ‘para-meter’ of data.

Remember, in Visual Basic ( VB ) ‘sub(s)’ do not generate a ‘value’ whereas ‘functions’ do!

This article was written by Robert Hempaz, Phd. Trichometry™ after reviewing the digital publication ‘Beginning Visual Basic 2005, Chapter 3′ by Thearon Willis and National Geographic dot com.

The information provided in this article is on an ‘as is’ basis.
The authors, the publishers and yours truly shall have neither liability nor responsibility to any person or entity as a result of any negative adverse consequences or as a result of any positive philantropic reactions, if any, that may or may not have occured, or will have occured as a result of reading this information.

Of course, your comments are always welcome and we do enjoy receiving ‘positive feedback’ regarding our efforts to envelope the globe with positive utopian Asp.net dynamism.

Give generously to the Libertarian effort to abolish the current prohibition against the planting of cannabis and hemp varietals in your county, state, province or country for the continued benefit of being able to listen to our songbirds 'chirp'.
Birds Know Omega3™

Source: Cannabis Achene Bird Feed Magazine

Hempaz-Google Group
Subscribe to Hempaz-Google Group
Email:
Visit this group

Mountain Jam™ Cannabis Neck Ties are available at the Hempaz-Zazzle Gallery on the World Wide Web
Get yours today!

Clik to Purchase Ladies Wet Tee™ Brand Spaghetti Strap Garden Top


Source: U2 ‘Beautiful Day’ Live at Slane Castle
Live from the ‘Slane Castle’ outdoor concert.

Make a donation to the Medical Marijuana Initiative (MMI)™ Today!

Clik here to donate securely to the Medical Marijuana Initiative (MMI)™

Payments processed by Azjaguar Design & Manf Co. via PayPal, Inc.

Gracias por su visitita, adios y…
¡Buenas suerte a vosotros!
Robert Hempaz, PhD. Trichometry™
Blogged with Microsoft Windows Live Writer

var FCProAccountId = “487797b5-e62f-42ae-aedb-f2724052b1a1″;
var ServerName = “hempaz-com.sitereports.officelive.com”;

Microsoft Office Small Business Alt Page Tracking Code Image

Advertisement
Categories: VB
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.