Skip to content

mgarcia01752/Q-Number-Format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Q-Number-Format

Q is a fixed point number format where the number of fractional bits is specified

Q-Number-Format

  s   3           12
  [0][010].[0100.0000.0000] = 0x2400
  Float 1.125 - s3.12 Format -> 0x2400 -> 16bits 
  QNumberFormatNotation(s3.12, 2400): 1.125
  
  s   3           12
  [1][111].[1000.0000.0000] = 0xf800 -> -0.25
  Float -0.25 - s3.12 Format -> 0xf800 -> 16bits
  QNumberFormatNotation(s3.12, f800): -0.25

More Examples

Text Book Citation

About

Q is a fixed point number format where the number of fractional bits is specified

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages