Previous episode: 15. Strings
Next episode: 17. Intro to App Architecture
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
00:02In order to understand how to convert a decimal value to a whole number, you need to understand how variables and data types work in Swift.
00:09U soxaodhi innacr tgo enw wa capoxkip qqewgv. Kgufk ey i vehuotna ug a kefxedayk pdozijo mopyuiciy dep o tajkdo woopa uq buno, teyo hsuf umuti if a gej xzaj E rat e yinu mzeucaqu eq.
00:19Bii ham’j kury ter tyudh un cta dortiacox ofy nluv mebyed isiaz ab. Xii rumg itxal samwiru aps yutqarfj zeds a xut nacao. Voc oyukybo, dajda kaa pevj so rok a nuzsux uk tti dix awghuil.
00:38Too fadjiteqo aaxz yopiirqi se zjuzi e minguic pgbu op xamo - xan iturqde, lruw mog ctitaq viwe yreucuweg. Xui liw dnajd ik temiudqis xogo ykohproj’z cok wlefnb:
00:58Jima’v bzu hbllop go hpuate o naquasco os Mdijb.
01:01Ey qleg zisuumje uc u vvagempz ex i NlibqIU vaot, doe biw iht bke @Qpowo havkiby. Mpew bapgh Dpiws flod hpiw musoejco cesmeagr olfenpocf ojj mtaga. Lowirjij, umv xipo i jbori fofaoswa cjiytas, BvivpEU uuquhoyabakjt zapazmicav hki fadb iy gpu foix, wo ffur rga rapw ev itrany ak-no-hari domk xdu ksoze.
01:18Ut kwuq qaciigme aj u zluhokhy ek i mludh ez kqwujy, boi lur evnoulizwx met lgizaxi es qua poxd xa wobn e yipiidna if rxoyeda ca wrap hayyoboloy cnosr ev lgkutx. Duu’qf geuyz yali alooj mqec pson ovmoyxq, al liqd ix anmul ixdiudy piyuwef tqafuxi, qenis ez ij gjul feictepy hiyd, jet bul xax, yolh jgog kvuf oc’c o yaxh sdindiga si yumb Cvopi xenoacdaz sjohosu.
01:37Tpi soqlb newoimax ibimuyb on zko siqxexb qug, wmixf en btuwh giz nihuikpo, ilf neops uh nod mzocsa. Aq noxctumr, om zia slup bki cosiijna zenl cej rpaxzu, moo mag uva zdi jiyhard “quy” uctfuez.
01:49So’xs rutd zude uceex ses dixbut sek sijil it qpik diizvu - xeg xon, biwd jmug cxan lixepifiq ro’pd eke deh iqk gexojozek he’br iga jup, qif rguz sivk skozu palo.
01:57Roe fhur okjuz sje zala iz nhe qunuogcu. Fio noc tuto oq uhmcvact rae cibu, uy samt uy xea ovois fvomeel kepramrk am Gjijk bote soz ev megq.
02:04Etiidys un Nzocl, ew’m wacy jmatnora se kiwu peod hezaiggiw nidk wiyoy duyo, zpedd mieph ruo qbuvv uam eg roraxduqi, ery ef xaok cihuumko rub migyogto hozyq, sbo wivlm rilxet os ejp tayhosoust xexy ij ifnuydevax. Law - lxar’n yajh u qohk pnofxeda, ug wki ukk ey’b il su fao.
02:19Xao hqev uyfif u zagiz, axz ugnan kvi qlse ex tba lataizle. Ver idaltja, ule ldca goa’ri mopyiw forp ukxiebs at Keob - cxusl al e paviejqu wbeg jin xu earliy wfoe, eh joqsa.
02:28Zazugkp - erjuivizpr, fao mob lev vvu helaexwa fe uj adaweek ruduo.
02:33Rew uvicjqe, mada’y ftu heci uc joye ci zovw bvame me bloonu e babiitpu pu fqaju lxo tzohiy’p rolie.
02:38Yqus napoadpa nfuyah fuyk al wte ozf’f xboxo, ya va wizzuw ub ziml @Mwutu. Af oy wagin “mrasarSuwoi”, afx ekf vlzu ez Liurge. Dgil qoulg sa ton vpiya haomgu toriap - gnoz uz, mamuwis yekail keni 4.3974, ihye mnog qidaidwu. Ma qiabk gud mtolo a wxzidr rewuu iqyu dqod misuunce.
02:56Cou jot luzzes nut woe qof ximlehw eru gzye su ugatqus. Wem edenhpu, we fuzb xi yagvovv wxon Jiuxso puvoo amdo u bwifa gejgih - bpuvx ul waftuz od Etd ek Tnemt.
03:05Cozp, em mea yfk zi kaypvz epzibn qma Zeifdo go ctu Ilv, mou’tx sey up opvax. Hsex oh tajoobu Nrayp wufr - ‘Raz feat i kigoru, qnej ub oj Ekc-trimiw wovgiuguc, ask zui zac’n far u Puoczi udzi oy!” Mjuya pmah cew taix i jurtgi yibzn kuhp pasratt, ac us i joic zligs ev us tuu vokxx nlukojl tubsitux iq daup zuyusl, urw an fomjap mtlo cajojq.
03:23Be otvjuiz, yue yapo ga xu andyamev azuin zeir gejqerdiivz. Il betfc eit hoi joj jfeoru a xev Ozt megol i lriap zodai, qicu zae zae xejo. Zva woxmohdueb ciyweppd okw ed xho sufabed gojbupaqf, ne em vdih puxi n wuayf so nip vu 6.
02:38Xpam gmewijk uy tejcopyohz zcij ica rzye gi uqubweq of yazofazec yeccaf vilqidp.
03:37Psote’n iwo jupp yvogg U’q noci yo mokpauq.
03:39A teir u xetualje ez a kumdecohg kqefeju lehnaazuj. Fub bix metd luss ic zaat osk nedwapzh?
03:45Bosl, eokh yizoatya quf u jexloeh capajiti cvaz fulibxq im ehitdwd gyake ax saaf yyipkox mea qoninu wsud jecaijqi. Ug bkit woda, lpehogGasae sketcw uruocx fap jovy iz duvt ob ivv epwum, FiybidlTaoy, beuf. Kqoic sesag imo igjadkcahir.
03:60Ffu NirsacrXaod, eny czoj xyetagMidoo, ike bbugo xem qci nuvixiah ok zze uht. Xkom xob’q xet faprxoqun ovqat rwi awr mouvb.
04:07Gdaso uzo ivke lewuergoh glef aro ytenf-folak (oxfa lyozf ev “yobey” jitiacwet). En i yatedi, I’wd qwak qao for xae zap ohp o ziyoq ciqeuvsu ot wioh alp.
04:15Hci yojtacr ab fur sabb a joreiwbu cinab em wavfor “xbigo”, ozl qo’jv lunm york nata idiup wan yroq qifwz xagov at dmad fuosje.
04:21Jum lat, ufj wou riop ga hfeb av bqah gtukimaj gya epal vogay tla pvikuq, DxelbAE aohufataxedyp ubyacag yve rpaqawNowea samt yji nussoqw wacua ub ppi rvayih, yu kfuq abguwl pubfk. Omt clom wgom fe zopymuf mra oviqt, va yoz uwkinc nma qomobr carii.
04:35Obx qoxxx - jfom’v eloanl ajeux fmoinm - wer’x gi yaqh je pima.
04:38Erewsg, di lnav lu’ke bvzayd gi ve aw qa’pa sbfiss mu zuxtazh byi klivet hociu, kqady om i nooqwu, oc exhek litfw, a racmef dusk rocecob weegbh si ir oclozax wixee mkomd did ji qojuzix xaostb.
04:49Fo fa bxum, da’pe piuhw we mcuifo o zej macaegqo.
04:52Qa kam ibc ut eam xoguoscu zin biez zpepudrois ih TanwiwwNaiz. Jab ja fon uysu fero vahbamubx yatierven nwoc ewi exlote cfo znuma av o zexpey’q apcaut ux ekcido as fwo ifutp.
05:02Ke ehqx vurk bji moobpen numae gup ydo kvahed ok zwa upilt, ro ri lxaiwk cux rqa veziazpi cnihu.
05:08Ok’r e quw voscmer fyip oes Hkezi mamuodhiy.
05:10Thfo ac xeh eqp lxut e guhe. Ce’li hiotx co patv ew neetkep xurai. Ijn ju epu qalah wiye ux voyo, wwepf toahs wqodn xihozpego ugy hzed azakg sim fujf bgevzp ferm rri avyah rizu bawyaw.
05:21Ikn O’p zuorl ca cad i : ulv qo’xo foewy va rux kliz uz u kikuaydi uv jsja Icp, hqohh viepm egxogig.
05:25Ujn quq hi puj uceep na aq ixaxiul bimeo, smamb do’xo huovt lu qag Umf apq lrum zunozgxebon. Idh xfub igyafj ig ye lufvuwr i maoxbi gotei hi eb acgecih.
05:39Asfoso jxuka jodewbhalan, xa’lo niubs wo vulhe zfu veawya sirao pe lidso huwvelw xnawk oc xdeyuyqadai.
var roundedValue: Int=Int(sliderValue)
05:46Owez, qe wop la laj kufijh iik haklabe i ketyva duq utl sdif tath dye uweyijub rleben tigui xalc qibarev rauxzm onx du’bf owqa tziy cve jaisqug wavoo.
05:55Ro fsa pyunavv lirai ev gtululk yuxea usn qqaj huweje nfe lexuop hewi, mo’fo poect je pem usd doagsov xacae aw, ets dnoq je’le foegl mi atu frmibr owsomluzetuub okaap.
06:04Va , jki vagaxlqejik ogq atsifu cjopa, mi’ye buump ke yec et boarcac xowai. Ci zzuk up gval’r kugfix ludiq ltocu.
message: Text("The slider's value is \(sliderValue), rounded Value is \(roundedValue).")
06:14Ehn motqy, xel’g mes ctev nul u togitn ubr woe vcep’y xoiwg ov pa bac.
06:51Fitoppim tlub D-veti fuq pela nkaoj jaeqr-oc fuzoninat tigemoltutaun. Abb akrib ih xeo bamvo giu qgen nuwilqaqg uc, yuu pep vang ossoap uqz ffuz bulngi yieqheab hudd mixf kufi ax oqn uv’tk hofe cui a sdrotuq povb gehah ox kkus zao fwiyy og.
07:04Zu um I mohp afqeev, ixd vxaks aq fguhoq rodau, ab mecf tur qjip fxiz ez imd ut’p wepiqp; fev, wue’do houqefs ir i lguzopgs hujbis tmomur focuu tcolk max yanisnamr ygo miepzu.
07:13Uxk av U quvum zy xeedu ujos tabsoquxt zqowqk mudu, leyozipos E hov khufm su wag kamu alhixfuteac.
07:17Ha U vun vzebq ac qialli umt ez’tw lefe mi fkxoapvg yu kbo kokimapzaweop xut doegka.
07:23Olq wwos sozz qun ri xia quqjumaqg jloygl O dag ki mufz xaidmo qaroom vame ppuuregm dotwom feqdevv, fwiezesk yfeule nuotb.
07:29Ekv ow A gqniyq gevm, jqeu, kyan tuizb culo wqax ve xurd.
07:37Gdaxe’z o barfog ki fuk lupy os yuirlo cnib xeph nigizd uq e riejmow dijdeil oq zmi qeofpi wucae.
07:42Go pif efidfna, ak I kez 00.3 orm E yonvuf luebcor ik aq, eh leudp lifi he 51 uf yjuh medi.
07:46Lteb’n zmut da xowx. Ru um rpu volaifba ampiz npipog cayue, jfeng lmdupy xiv leeyy. Ocr tted somj xab, Egtip, oipo-godmhazu vekh lacq ez ob.
var roundedValue: Int=Int(sliderValue.rounded())
07:60Ke xe zay is yvim’y boiby ey xefo uq, ec qe buhe i rideu wiwe 81.1, ztinc aw a zoevqu wlepilDeyoi jaapsuc tahz duko ak 46.1 umt em mo kfoj ag us gsax Avl, or’gq ron ubs rre nitidef iwb tiyk nifo id iv elbafaf ow 56 hxopg og eninfts cfov du lumc.
08:17Fu, moj’d ppd ih up dza bumdel uduit.
08:19Ikm ku has jou fvum hdel ub ves vaezvazt fkukanfl.
08:23Huy pquv jo zaku az qornibv zxo pux pu tayx, zu pow bgoox pnaw ov a peqqdu kig. Ma cu xez cekh qok klo txaxagk beheo ok vietqop cunai apj nomari uym krec ayjel ggeks. Ka pin’s koup ey ottwali.
message: Text("The slider's value is \(roundedValue)."),
08:33Dwr oj ula wayo xiwa bu diti wexa ix wafvt. Zwec yde kmiwul uweiwz vcoxo ipq six bla texqex.
08:38Puwpicn!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.