View Issue Details

IDProjectCategoryView StatusLast Update
0034439FPCPatchpublic2018-10-20 14:19
ReporterMatti KronmanAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Product Version3.2.0Product Build 
Target Version3.2.0Fixed in Version3.3.1 
Summary0034439: Standard prefixes
DescriptionI am not sure, but I think that every other programmer has this in their own standard libraries, so why would not add it to to the The Great Standard Library, RTL?

Would it then go to the Math unit, I am not sure, or to somewhere else.

[code=pascal]Const
  siYocto = 10**-24;
  siZepto = 10**-21;
  siAtto = 10**-18;
  siFemto = 10**-15;
  siPico = 10**-12;
  siNano = 10**-9;
  siMicro = 10**-6;
  siMilli = 10**-3;
  siCenti = 10**-2;
  siDeci = 10**-1;
  siDeca = 10;
  siHecto = 10**2;
  siKilo = 10**3; iecKibi = 2**10;
  siMega = 10**6; iecMebi = 2**20;
  siGiga = 10**9; iecGibi = 2**30;
  siTera = 10**12; iecTebi = 2**40;
  siPeta = 10**15; iecPebi = 2**50;
  siExa = 10**18; iecExbi = 2**60;
  siZetta = 10**21; iecZebi = 2**70;
  siYotta = 10**24; iecYobi = 2**80;[/code]
TagsNo tags attached.
Fixed in Revision39992
FPCOldBugId
FPCTarget
Attached Files

Activities

Michael Van Canneyt

2018-10-20 12:41

administrator   ~0111479

Added to math unit.

Note that the highest powers are not expressable in a int64 type, so they become float types.

Michael Van Canneyt

2018-10-20 14:19

administrator   ~0111484

After discussion on core group, moved to stdconvs unit (in packages/rtl-objpas)

Issue History

Date Modified Username Field Change
2018-10-19 18:41 Matti Kronman New Issue
2018-10-20 12:41 Michael Van Canneyt Fixed in Revision => 39992
2018-10-20 12:41 Michael Van Canneyt Note Added: 0111479
2018-10-20 12:41 Michael Van Canneyt Status new => resolved
2018-10-20 12:41 Michael Van Canneyt Fixed in Version => 3.3.1
2018-10-20 12:41 Michael Van Canneyt Resolution open => fixed
2018-10-20 12:41 Michael Van Canneyt Assigned To => Michael Van Canneyt
2018-10-20 12:41 Michael Van Canneyt Target Version => 3.2.0
2018-10-20 14:19 Michael Van Canneyt Note Added: 0111484