Scroll Down to See All
abortabsacosasctimeasctime_rasinassertatanatan2atexitatofatoiatolbsearchbtowccalloccatclosecatgetscatopenceilclearerrclockcoscoshctimectime_rdifftimediverferfcexitexpfabsfclosefdopenfeofferrorfflushfgetcfgetposfgetsfgetwcfgetwsfopenfprintffputcfputwsfreadfreefreopenfrexpfscanffseekfsetposftellfwidefwprintffwritefwscanfgetcgetchargetenvgetwcgetwchargmtimegmtime_rhypotisalnumisalphaisasciiisblankiscntrlisdigitisgraphislowerisprintispunctisspaceisupperiswalnumiswalphaiswblankiswcntrliswctypeiswdigitiswgraphiswloweriswprintiswpunctiswspaceiswupperiswxdigitisxdigitj0j1jnlabsldexpldivlocaleconvlocaltimelocaltime_rloglog10longjmpmallocmblenmbrlenmbrtowcmbsinitmbsrtowcsmbstowcsmbtowcmemchrmemcmpmemcpymemmovememsetmktimemodfnextafternextafterlnexttowardnexttowardlnl_langinfoperrorpowprintfputcputcharputenvputsputwcputwcharqsortquantexpd32quantexpd64quantexpd128quantized32quantized128samequantumd32raiserandrand_rreallocregcompregerrorregexecregfreeremoverenamerewindscanfsetbufsetjmpsetlocalesetvbufsignalsinsinhsnprintfsprintfsqrtsrandsscanfstrcasecmpstrcatstrchrstrcmpstrcollstrcpystrcspnstrerrorstrfmonstrftimestrlenstrncasecmpstrncatstrncmpstrncpystrpbrkstrptimestrrchrstrspnstrstrstrtodstrtod32strtod64strtod128strtofstrtokstrtok_rstrtolstrtoldstrtoulstrxfrmswprintfswscanfsystemtantanhtimetime64tmpfiletmpnamtoasciitolowertouppertowctranstowlowertowupperungetcungetwcva_argva_copyva_endva_startvfprintfvfscanfvfwprintfvfwscanfvprintfvscanfvsprintfvsnprintfvsscanfvswprintfvswscanfvwprintfvwscanfwcrtombwcscatwcschrwcscmpwcscollwcscpywcscpywcsftimewcslenwcsncatwcsncmpwcsncpywcspbrkwcsptimewcsrchrwcsrtombswcsspnwcsstrwcstodwcstod32wcstod64wcstod128wcstofwcstokwcstolwcstoldwcstombswcstoulwcsxfrmwctobwctombwctranswctypewcwidthwmemchrwmemcmpwmemcpywmemmovewmemsetwprintfwscanfy0y1yn



Function Details : quantized64

doublequantized64(double value,int levels) ;

Return Type : double

Double-precision floating point (±1.7E±308, ~15 decimal digits)
Read about return values of quantized64 function .

1st Parameter Type : double

Double-precision floating point (±1.7E±308, ~15 decimal digits)

1st Parameter

The input 64-bit floating-point value to be quantized.

2nd Parameter Type : int

Integer type (typically 4 bytes, -2,147,483,648 to 2,147,483,647)

2nd Parameter

The number of discrete levels to which the input value will be quantized.

Read more about parameters of quantized64 in parameters section
The quantized64function in C language Quantizes a decimal floating-point number (_Decimal64) to the same exponent as another. Note: This is part of the optional decimal floating-point arithmetic support.
The quantized64 function sets the quantum exponent of x to the quantum exponent of y, while trying to keep the value the same. This function provides higher precision than quantized32 and is particularly useful in financial or scientific calculations where more decimal places are needed while still requiring specific rounding or quantization.
The quantized64function takes 2 parameters:
  • double `value`: The input 64-bit floating-point value to be quantized.
  • int `levels`: The number of discrete levels to which the input value will be quantized.
Quantizes the input 64-bit floating-point value `value` into one of `levels` discrete levels. This function is useful in applications like machine learning, signal processing, or compression, where reduced precision is acceptable. Returns the quantized value as a `double`.
The quantized64 function return value :
  • Returns the quantized value of x with the quantum exponent of y

Output

This example demonstrates how quantized64 adjusts the quantum exponent of x to match that of y, effectively rounding x to six decimal places.