Changes between Version 2 and Version 3 of Doc/panc/stdtpl/units
- Timestamp:
- Nov 30, 2007, 11:01:32 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/panc/stdtpl/units
v2 v3 2 2 [[TracNav]] 3 3 4 This template contains multiplier variable definitionsthat allow the consistent use of units throughout a machine configuration. The base units assumed by this template are megabytes (MB) and megahertz (MHz); that is, those multipliers have a value of 1. The multipliers and their values are:4 This template contains multiplier definitions (as global variables) that allow the consistent use of units throughout a machine configuration. The base units assumed by this template are megabytes (MB) and megahertz (MHz); that is, those multipliers have a value of 1. The multipliers and their values are: 5 5 * mb or MB = 1 6 6 * gb or GB = 1024 * MB; … … 8 8 * MHz = 1 9 9 * GHz = 1000 * MHz; 10 These are available as global variables and can be used as in the following example: 10 Once this template has been included in a configuration: 11 {{{ 12 include { 'pan/units' }; 13 }}} 14 the above multipliers are available as global variables. The following example shows their use: 11 15 {{{ 12 16 variable myspeed = 366 * GHz;