Skip to content

Instantly share code, notes, and snippets.

@ryan-lane
Created June 16, 2014 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryan-lane/4ebdb96c9936278833dd to your computer and use it in GitHub Desktop.
Save ryan-lane/4ebdb96c9936278833dd to your computer and use it in GitHub Desktop.
{{ (grains['mem_total'] * 1024) * 0.1 | round(1, 'floor') | int }}
0
{{ (grains['mem_total'] * 1024) / 10 | round(1, 'floor') | int }}
383795.2
{{ ((grains['mem_total'] * 1024) * 0.1) | round(1, 'floor') | int }}
383795
{{ ((grains['mem_total'] * 1024) / 10) | round(1, 'floor') | int }}
383795
@diegows
Copy link

diegows commented Jun 16, 2014

I prefer mako :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment