Вот рабочий пример
var value=200.2365455;
result=Math.round(value*100)/100 //result will be 200.24
Use the -M option to output the dependencies. Use -MD to generate and compile. Use -MF to redirected to a file.
Also -MM allow ignoring the system file in the dependencies list.
gcc ... -M -MF <output_file> # generate dependencies
gcc ... -MD -MF <output_file> # compile and generate dependencies
Вы можете использовать параметр -MD
- подробности см. В man gcc
.
Используйте gcc -M или gcc -MM. Если хотите, отрегулируйте вывод с помощью sed. Если вы используете GNU make (а вы должны это сделать), вы можете обернуть это в одну команду tidy.
Увеличить подробность gcc, а затем запустить его через собственную программу фильтрации?