PageSourceSearch

https://gpacalculate.com/_next/static/chunks/pages/percentage-to-fraction-2430b55af75d32a0.js

js gpacalculate.com collected 2026-09-24 13:11:48 UTC 10,634 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73],{4438:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/percentage-to-fraction",function(){return n(8382)}])},6868:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(5893),s=n(4972),o=n(7747),a=n(7311),i=n(9008),l=n.n(i),c=n(5696),p=n(9879);let d=e=>{let{faqs:t}=e;return(0,r.jsx)(l(),{children:(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(e=>{let{question:t,answer:n}=e;return{"@type":"Question",name:t,acceptedAnswer:{"@type":"Answer",text:n}}})})}})})},u=e=>{let{blog:t}=e;return(0,r.jsx)(l(),{children:(0,r.jsx)("script",{id:"article-schema-".concat(t.slug),type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:t.title,image:{"@type":"ImageObject",url:(0,c.Jn)(t.image),width:"1200",height:"630"},author:{"@type":"Person",name:t.author.name},publisher:{"@type":"Organization",name:"Gpa Calculate",logo:{"@type":"ImageObject",url:(0,s.Z2)("/assets/Logo.webp"),width:"100",height:"100"}},datePublished:t.publishedAt})}})})},h=e=>{let{image:t}=e;return(0,r.jsx)(l(),{children:(0,r.jsx)("script",{type:"application/ld+json",id:"image-schema-".concat((0,s.GD)(t.alt)),dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org/","@type":"ImageObject",contentUrl:(0,c.Jn)(t)})}})})},x=e=>{let{author:t}=e;return(0,r.jsx)(l(),{children:(0,r.jsx)("script",{type:"application/ld+json",id:"author-schema-".concat(t.slug),dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Person",name:t.name,image:(0,c.Jn)(t.image),url:p.d.authorSlug(t.slug.current),sameAs:t.socials.map(e=>e.value)})}})})},m=e=>{let{videoLink:t}=e;return(0,r.jsx)(l(),{children:(0,r.jsx)("script",{type:"application/ld+json",id:"video-schema-".concat(t.name),dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"VideoObject",name:t.name,description:t.description,thumbnailUrl:t.thumbnailUrl,uploadDate:t.uploadDate,embedUrl:t.embedUrl,interactionCount:t.interactionCount||"0"})}})})},g=n(3454).env.NEXT_PUBLIC_SITE_NAME;function j(e){let{title:t,description:n,url:i,keywords:c=[],sanityScripts:p=[],schemaBlogs:j=[],schemaImages:b=[],schemaFaqs:f=[],schemaAuthor:y,schemaVideoLinks:w=[],children:_}=e;t=t||"",n=n||"",i=i||"";let S=(0,s.Z2)(i),v=[],C=[];return p.forEach(e=>{"head"===e.insertAt?v.push(e):"body"===e.insertAt&&C.push(e)}),(0,r.jsxs)(o.xu,{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("link",{rel:"manifest",href:"/favicon/site.webmanifest"}),(0,r.jsx)("meta",{name:"description",content:n}),(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{property:"og:description",content:n}),(0,r.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,r.jsx)("meta",{property:"og:site_name",content:g||"GPA Calculate"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:image",content:"https://gpacalculate.com/assets/GPA_Calculate_logo.webp"}),(0,r.jsx)("meta",{property:"og:url",content:i}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{name:"twitter:title",content:t}),(0,r.jsx)("meta",{name:"twitter:description",content:n}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://gpacalculate.com/assets/GPA_Calculate_logo.webp"}),(0,r.jsx)("meta",{name:"keywords",content:c.join(", ")}),(0,r.jsx)("meta",{name:"posticywebsite",content:"z3Rm3kWfffk6KbfXxfoZjPR4fTPf77"}),(0,r.jsx)("link",{rel:"canonical",href:S},"canonical"),(0,a.ZP)(v.map(e=>e.value).join("")),_]}),j.map(e=>(0,r.jsx)(u,{blog:e},e._id)),b.map(e=>(0,r.jsx)(h,{image:e},e._id)),w.map(e=>(0,r.jsx)(m,{videoLink:e},e._id)),f&&f.length>0&&(0,r.jsx)(d,{faqs:f}),y&&(0,r.jsx)(x,{author:y}),(0,a.ZP)(C.map(e=>e.value).join(""))]})}},5696:function(e,t,n){"use strict";n.d(t,{Jn:function(){return i}});var r=n(6803),s=n.n(r);let o=(0,n(4880).eI)({projectId:"ht0o0fbo",dataset:"production",apiVersion:"2022-03-07",useCdn:!1}),a=s()(o),i=(e,t)=>
1{try{let{width:n=720,format:r="webp"}=t||{};return a.image(e).width(n).format(r).url()||"/assets/images/placeholder.webp"}catch(e){return"/assets/images/placeholder.webp"}}},8382:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return E},default:function(){return P}});var r=n(5893),s=n(6868),o=n(3517),a=n(7294),i=n(7747),l=n(1293),c=n(2338),p=n(2757),d=n(5227),u=n(2495),h=n(6554),x=n(7030),m=n(3179),g=n(6914),j=n(5432),b=n(7052),[f,y]=(0,d.k)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),w=(0,h.G)(function(e,t){let n=(0,x.jC)("Input",e),{children:s,className:o,...i}=(0,m.Lr)(e),l=(0,j.cx)("chakra-input__group",o),c={},p=(0,u.W)(s),d=n.field;p.forEach(e=>{var t,r;n&&(d&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=d.height)?t:d.h),d&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(r=d.height)?r:d.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))});let h=p.map(t=>{var n,r;let s=(0,b.o)({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});return"Input"!==t.type.id?(0,a.cloneElement)(t,s):(0,a.cloneElement)(t,Object.assign(s,c,t.props))});return(0,r.jsx)(g.m.div,{className:l,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...i,children:(0,r.jsx)(f,{value:n,children:h})})});w.displayName="InputGroup";var _=n(3090),S=n(4225),v=n(2883),C=n(1664),A=n.n(C);function I(e){let{num:t,den:n}=e;return(0,r.jsxs)(i.xu,{as:"span",display:"inline-block",textAlign:"center",mx:1,verticalAlign:"middle",children:[(0,r.jsx)(i.xu,{borderBottom:"2px solid #333",pb:"3px",children:t}),(0,r.jsx)(i.xu,{pt:"3px",children:n})]})}var E=!0;function P(){let[e,t]=(0,a.useState)(""),[n,d]=(0,a.useState)(null),[u,h]=(0,a.useState)([]),[x,m]=(0,a.useState)(""),g=()=>{let t=parseFloat(e);if(isNaN(t)){alert("Please enter a valid number");return}m(e);let n=t/100,s=n.toString(),o=s.includes(".")?s.split(".")[1].length:0,a=Math.pow(10,o),c=n*a,p=1*a,u=function(e,t){for(e=Math.abs(e),t=Math.abs(t);0!==t;){let n=t;t=e%t,e=n}return e}(c,p),x=c/u,g=p/u,j=[(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(l.x,{fontWeight:"bold",color:"purple.600",children:"Step 1: Divide the percentage by 100"}),(0,r.jsxs)(l.x,{children:[t,"% \xf7 100 = ",n]})]},"s1"),(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(l.x,{fontWeight:"bold",color:"purple.600",children:"Step 2: Write as a fraction"}),(0,r.jsxs)(l.x,{children:["The decimal ",n," becomes ",(0,r.jsx)(I,{num:n,den:1})]})]},"s2"),(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(l.x,{fontWeight:"bold",color:"purple.600",children:"Step 3: Convert to whole numbers"}),(0,r.jsxs)(l.x,{children:["Multiply both numerator and denominator by 10",(0,r.jsx)("sup",{children:o})," (because there are ",o," decimal places):",(0,r.jsx)("br",{}),(0,r.jsx)(I,{num:"".concat(n," \xd7 ").concat(a),den:"1 \xd7 ".concat(a)})," = ",(0,r.jsx)(I,{num:c,den:p})]})]},"s3"),(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(l.x,{fontWeight:"bold",color:"purple.600",children:"Step 4: Reduce the fraction"}),(0,r.jsxs)(l.x,{children:["The GCF of ",c," and ",p," is ",u,(0,r.jsx)("br",{}),(0,r.jsx)(I,{num:"".concat(c," \xf7 ").concat(u),den:"".concat(p," \xf7 ").concat(u)})," = ",(0,r.jsx)(I,{num:x,den:g})]})]},"s4")],b=(0,r.jsx)(I,{num:x,den:g});if(x>g){let e=Math.floor(x/g),t=x%g;0===t?(j.push((0,r.jsxs)(i.xu,{children:[(0,r.jsx)(l.x,{fontWeight:"bold",color:"purple.600",children:"Step 5: Simplify to whole number"}),(0,r.jsxs)(l.x,{children:[(0,r.jsx)(I,{num:x,den:g})," = ",e]})]},"s5")),b=(0,r.jsx)(l.x,{as:"span",children:e})):(j.push((0,r.jsxs)(i.xu,{children:[(0,r.jsx)(l.x,{fontWeight:"bold",color:"purple.600",children:"Step 5: Convert to mixed number"}),(0,r.jsxs)(l.x,{children:[(0,r.jsx)(I,{num:x,den:g})," = ",e,(0,r.jsx)(I,{num:t,den:g})]})]},"s5")),b=(0,r.jsxs)(l.x,{as:"span",children:[e,(0,r.jsx)(I,{num:t,den:g})]}))}d(b),h(j)};return(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(s.Z,{title:"Percentage to Fraction Converter | GPA Calculator",description:"Easily convert any percentage into a fraction with detailed step-by-step breakdowns. Learn how to simplify and reduce fractions from percentages.",url:"https://gpacalculate.com/percentage-to-fraction"}),(0,r.jsxs)(c.W,{maxW:"4xl",py:10,children:[(0,r.jsx)(p.X,{as:"h1",size:"xl",textAlign:"center",color:"purple.600",mb:4,children:"Percentage to Fraction Converter"}),(0,r.jsx)(l.x,{textAlign:"center",mb:6,color:"gray.600",children:"Percentages and fractions are two of the most common ways to represent numbers, especially in statistics. Since both express parts of a whole— with percentages based on 100—they are closely connected. We can help break down these concepts, making conversions between percentages and fractions simple."}),(0,r.jsxs)(w,{justifyContent:"center",mb:6,children:[(0,r.jsx)(_.I,{type:"number",placeholder:"Enter percentage (e.g., 75)",value:e,onCh
1ange:e=>t(e.target.value),onKeyDown:e=>{"Enter"===e.key&&g()},w:"60%",borderColor:"gray.300",_focus:{borderColor:"purple.500",boxShadow:"0 0 0 1px #805AD5"}}),(0,r.jsx)(S.z,{ml:3,colorScheme:"purple",onClick:g,px:8,fontWeight:"bold",children:"Convert"})]}),n&&(0,r.jsxs)(i.xu,{mt:6,bgGradient:"linear(to-r, purple.400, blue.400)",color:"white",p:5,borderRadius:"xl",textAlign:"center",fontSize:"2xl",fontWeight:"bold",children:[x,"% = ",n]}),u.length>0&&(0,r.jsx)(i.xu,{mt:6,bg:"gray.50",borderRadius:"xl",p:5,boxShadow:"md",border:"1px solid",borderColor:"gray.200",children:u.map((e,t)=>(0,r.jsx)(i.xu,{mb:4,children:e},t))}),x&&(0,r.jsxs)(i.xu,{mt:10,children:[(0,r.jsx)(p.X,{as:"h2",size:"md",mb:3,children:"Explore More Numbers as Fractions"}),(0,r.jsx)(i.xu,{as:"table",w:"100%",borderWidth:"1px",borderRadius:"lg",textAlign:"center",children:(0,r.jsx)("tbody",{children:Array.from({length:5},(e,t)=>(0,r.jsx)("tr",{children:Array.from({length:5},(e,n)=>{let s=5*t+n,o=(Math.floor(parseFloat(x))+(s+1)*.1).toFixed(1),a="".concat(o.replace(".","-"),"-as-a-fraction");return(0,r.jsx)("td",{style:{padding:"10px",border:"1px solid #ddd"},children:(0,r.jsx)(A(),{href:"/percentage-to-fraction/".concat(a),passHref:!0,children:(0,r.jsxs)(v.r,{color:"blue.600",fontWeight:"500",children:[o,"% as a Fraction"]})})},n)})},t))})})]})]})]})}}},function(e){e.O(0,[2372,1664,2888,9774,179],function(){return e(e.s=4438)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.