I would recommend using the `floor` function from puppetlabs/stdlib
https://forge.puppetlabs.com/puppetlabs/stdlib
Thanks,
Jonathan
On 10/03/15 09:27, MaryG wrote:
Hi,
I get this value from fact:
$shmmax = <<$facts['memorysize_mb']*1024*1024)/2
I want to trunc since I get a float 963211427.84. I want to cut
decimal numer and get 963211427.
How can I do it?
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to puppet-users+unsubscr...@googlegroups.com
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/feb8e41a-21c8-4a8e-a81b-0b571593c086%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/feb8e41a-21c8-4a8e-a81b-0b571593c086%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/55002CDC.5040403%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.