![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions ยท Generated namespace reference Rounds towards zero. Rounds towards zero and can be used to keep only the signed integer part of a control value. Based on trunc
klang::trunctruncate is an alias that supports the same direct-call and signal-flow forms.std::trunc.Direct call
const signal steps = trunc(sample * 8);Signal flow
const signal steps = sample * 8 >> trunc;Use the alias
const signal steps = sample * 8 >> truncate;