Hi Mary,

I would use the floor() function from puppetlabs-stdlib.

floor(($facts['memorysize_mb']*1024*1024)/2)

Trevor

On Tue, Mar 10, 2015 at 5:40 AM, Mary Gamberi <m.gamb...@gmail.com> wrote:

> Hi, I get value from fact:
> $shmmax = $facts['memorysize_mb']*1024*1024)/2
> I need to trunc this number. The result is 963211427.84. But I
> want 963211427.
> How can I do that?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/9013ea4d-c118-49f8-9863-e8ae1cecff6e%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-dev/9013ea4d-c118-49f8-9863-e8ae1cecff6e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaug...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoWXtfJVcqYYmHfDc%2B%3DQGRi660Zo51iXu_x33RakhLDrnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to