Jump to content


Photo

Округлить цену на товар


2 replies to this topic

#1 shebelme

shebelme

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 15 July 2018 - 07:56 AM

Добрый день всем пользователям парсера!

Возник вопрос как можно округлить цену на товар до целого числа?! 

В формуле цены стоит X+(X*0.2) - Прибавить 20% к стоимости поставщика. Но вот бывают моменты когда на выходе получается цена с копейками. Как этого избежать?!  И вообще было бы здорово иметь возможность округления до целого числа+до десятков+до сотен+до 1000. 

За ранее спасибо за помощь!


  • 0

#2 MaxD

MaxD

    Administrator

  • Administrators
  • 702 posts

Posted 16 July 2018 - 02:48 PM

Можно использовать все функции PHP. До целого:

round(X*1.2)

До сотен:

round(X*1.2, -2)

  • 0

#3 leilei3915

leilei3915

    Advanced Member

  • Members
  • PipPipPip
  • 124 posts

Posted 14 August 2018 - 11:05 AM

2018814 leilei3915

canada goose outlet michael kors outlet clearance moncler jackets ugg boots michael kors outlet online mulberry handbags canada goose outlet mbt shoes mcm bag polo outlet pandora jewelry polo outlet pandora charms sale clearance coach factory outlet online nike outlet store michael kors outlet clearance coach outlet polo ralph lauren outlet hermes birkin ralph lauren polo shirts canada goose jackets mbt shoes ray-ban sunglasses pandora charms outlet michael kors outlet canada goose outlet polo shirts christian louboutin shoes polo ralph lauren ugg outlet fred perry shirts michael kors outlet ray ban outlet polo ralph lauren outlet ugg outlet ray ban outlet canada goose jackets nike huarache shoes michael kors outlet canada goose coach factory outlet coach factory outlet ralph lauren shirts ray ban outlet cheap oakley sunglasses coach outlet cheap ugg boots canada goose jackets canada coach outlet online pandora charms kate spade sale mbt michael kors outlet clearance ugg boots polo outlet michael kors outlet clearance michael kors outlet clearance ralph lauren uk tory burch sandals uggs outlet michael kors outlet online superdry ugg boots canada goose pandora outlet mbt shoes outlet cheap ray ban sunglasses canada goose jackets mbt shoes outlet kate spade outlet true religion ugg outlet online uggs outlet pandora cheap ugg boots adidas superstar shoes pandora charms sale clearance pandora charms sale clearance michael kors coach factory outlet polo ralph lauren canada goose polo ralph lauren sale michael kors outlet pandora jewelry coach outlet store online nike factory outlet canada goose jackets manolo blahnik outlet coach outlet snapbacks wholesale michael kors outlet online pandora jewelry true religion outlet store canada goose outlet true religion jeans fred perry shirts clarks outlet michael kors outlet uggs canada ray ban sunglasses michael kors outlet online louboutin shoes polo outlet canada goose outlet store rolex replica watches coach outlet canada goose outlet coach outlet online ugg outlet pandora charms coach outlet fred perry polo ray ban sunglasses outlet pandora outlet ralph lauren polo ugg outlet online clearance polo outlet store coach outlet polo ralph lauren outlet ugg boots michael kors outlet true religion jeans adidas yeezy coach factory outlet mulberry handbags coach factory outlet michael kors outlet clearance valentino outlet store ugg boots clearance michael kors handbags yeezy boost 350 ralph lauren uk ugg outlet ugg boots coach outlet online canada goose jackets michael kors outlet clearance michael kors outlet michael kors outlet store kate spade bags michael kors outlet online pandora jewelry outlet kate spade outlet ugg outlet nike outlet ugg outlet pandora charms nike shoes ugg outlet

2018814 leilei3915

polo outlet ralph lauren sale clearance true religion christian louboutin shoes pandora outlet coach outlet online coach outlet store online michael kors outlet christian louboutin shoes canada goose outlet adidas yeezy shoes polo outlet ugg outlet michael kors outlet yeezy boost 350 v2 michael kors uk cheap jerseys true religion pandora outlet ray ban sunglasses outlet christian louboutin shoes nike huarache birkenstock shoes coach factory outlet polo shirts coach outlet online canada goose jackets supreme clothing uk nfl jerseys oakley sunglasses ralph lauren outlet coach outlet store online ralph lauren outlet coach outlet online pandora jewelry polo ralph lauren coach outlet ralph lauren outlet cheap mlb jerseys adidas outlet store canada goose outlet christian louboutin sale ugg outlet coach outlet cheap air jordan canada goose outlet canada goose outlet store coach outlet store online ralph lauren uk valentino outlet pandora outlet polo ralph lauren outlet uggs outlet asics shoes mont blanc ralph lauren polo longchamp outlet online michael kors outlet pandora outlet coach outlet online christian louboutin outlet coach outlet ugg boots ralph lauren uk pandora jewelry michael kors handbags clearance mbt outlet oakley sunglasses yeezy boost 350 michael kors outlet online canada goose pandora outlet air max 2017 michael kors handbags sale canada goose outlet store pandora charms michael kors outlet ugg boots pandora charms moncler jackets polo ralph lauren coach factory outlet coach outlet mulberry bags canada goose outlet store pandora jewelry michael kors outlet michael kors outlet yeezy boost cheap oakley sunglasses polo ralph lauren outlet ultra boost christian louboutin shoes canada goose jackets polo ralph lauren coach factory outlet off-white uggs outlet coach outlet online coach factory outlet air jordan shoes pandora outlet pandora charms canada goose nmd adidas mbt shoes ugg boots on sale cheap air jordan michael kors fitflops outlet polo outlet ralph lauren shirts coach factory outlet adidas outlet online coach factory outlet christian louboutin sale moncler outlet cheap jerseys wholesale coach factory outlet pandora jewelry oakley sunglasses polo outlet ugg outlet air jordan shoes true religion outlet pandora outlet michael kors outlet clearance supreme uk canada goose giuseppe zanotti sneakers ralph lauren nba jersey coach outlet online nike outlet true religion jeans coach outlet online michael kors outlet clearance michael kors outlet online nfl jerseys wholesale michael kors outlet online louboutin shoes ray-ban sunglasses canada goose outlet online true religion jeans pandora charms sale clearance michael kors outlet oakley sunglasses wholesale michael kors handbags hermes outlet coach outlet online michael kors handbags giuseppe zanotti shoes cheap nba jersey moncler jackets kobe shoes polo ralph lauren ralph lauren canada goose coats mbt shoes clearance outlet canada goose sale cheap ugg boots ralph lauren outlet michael kors outlet online nike shoes outlet moncler outlet online uggs outlet pandora jewelry ferragamo shoes sale true religion jeans cheap uggs nfl jerseys true religion outlet air max 90 nmd adidas moncler outlet converse shoes
  • 0



Reply to this topic



  



 

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Community Skin by Fredson Nunes Junior