Not padding a file version

(imported topic written by SystemAdmin)

I’m probably answering my own question of why the PAD inspector exists, but I’ll confirm anyhow…

Is it safe to assume that if two versions don’t have the same number of sub-versions, that the longer version number is truncated down to the number of sub-versions in the shorter version?

e.g.

Q: version “8.7.0.570” = version “8.7”

A: True

Since only a major.minor exists in the second, only the major.minor in the first version number is compared.

The above isn’t really explained in WinInspectors_72_081215.pdf.

So then the sample on page 184 is really a bad example of why to pad:

Q: pad of version “1.2” = version “1.2.0.0”

A: True

These would have been better examples…

Q: pad of version “1.2” < version “1.2.3.4”

A: True

Q: version “1.2” = version “1.2.3.4”

A: True

-Paul

1 Like

(imported comment written by BenKus)

That is correct…

Pad is typically used for properly outputting a result and less to deal with comparisons…

Ben